01-13-2015, 09:53 PM
Hello All,
I am working on a project that I think an ARRAY would be perfect for but I am unsure of how to set it up properly. Here is an example of what I am working with.
I have an input of "Monthly Benefit" and I need to convert it to a "Daily Benefit".
MB / 30 Days = DB
Monthly Benefit (MB) = $5000
Daily Benefit (DB) = $166.666666667
The trouble is in the software that I am programing in QuickMacros only accepts a Daily Benefit in whole 10 dollars increments. In other words, when you divide $5000 MB by 30 days you get an odd number that does not match with the accepted input in the software. I think using an ARRAY with 2 dimensions would allow me to use the calculation of DB act as a pointer value to the element in the 1 dimension in the array which then points to the associated 2 dimension in the array. See reference below.
Monthly Benefit----Dimension 1-----Dimension 2
4800-----------------160---------------160
4900-----------------163.333333------160
5000-----------------166.666666------170
5100-----------------170---------------170
I can easly create this list in an excel file but I don't know how to create it in QuickMacros and how to use the array to look up the proper value. Can someone give me an example of how this might work?
Thanks in advance!
Paul Daugs
I am working on a project that I think an ARRAY would be perfect for but I am unsure of how to set it up properly. Here is an example of what I am working with.
I have an input of "Monthly Benefit" and I need to convert it to a "Daily Benefit".
MB / 30 Days = DB
Monthly Benefit (MB) = $5000
Daily Benefit (DB) = $166.666666667
The trouble is in the software that I am programing in QuickMacros only accepts a Daily Benefit in whole 10 dollars increments. In other words, when you divide $5000 MB by 30 days you get an odd number that does not match with the accepted input in the software. I think using an ARRAY with 2 dimensions would allow me to use the calculation of DB act as a pointer value to the element in the 1 dimension in the array which then points to the associated 2 dimension in the array. See reference below.
Monthly Benefit----Dimension 1-----Dimension 2
4800-----------------160---------------160
4900-----------------163.333333------160
5000-----------------166.666666------170
5100-----------------170---------------170
I can easly create this list in an excel file but I don't know how to create it in QuickMacros and how to use the array to look up the proper value. Can someone give me an example of how this might work?
Thanks in advance!
Paul Daugs