I am trying to take an Excel worksheet and move it into Access because the number of workbooks grow by at least five every day.
Here's my problem: I have anywhere from 5 to 15 (depending on the product) fields of numerical data. They are calculations from other parts of the query/table and I need to be able to choose the two fields (separately) between which '90' would fall. Clear? Look at this...
4 6.0
8 29.0
16 65.8
30 85.0
50 92.8
100 97.2
I need one field to return the 92.8 value, another with the correlating 50, another with 85.0 and yet another with it's correlating 30. Can I do that in Access? Here is what the Excel formulas look like.
H22 =OFFSET($F21,MATCH(90,$F21:$F33,1),0)
H23 =OFFSET($F21,MATCH(90,$F21:$F33,1),-4)
H24 =OFFSET($F21,MATCH(90,$F21:$F33,1)-1,0)
H25 =OFFSET($F21,MATCH(90,$F21:$F33,1)-1,-4)
H26 =(90-H24)/(H22-H24)*(H23-H25)+H25
Anybody have any suggestions? Every function that I've tried wants to match exactly to 90 or isn't capable of looking at so many fields of data. Any ideas are welcome!
Thank you ~ NikiLee
Here's my problem: I have anywhere from 5 to 15 (depending on the product) fields of numerical data. They are calculations from other parts of the query/table and I need to be able to choose the two fields (separately) between which '90' would fall. Clear? Look at this...
4 6.0
8 29.0
16 65.8
30 85.0
50 92.8
100 97.2
I need one field to return the 92.8 value, another with the correlating 50, another with 85.0 and yet another with it's correlating 30. Can I do that in Access? Here is what the Excel formulas look like.
H22 =OFFSET($F21,MATCH(90,$F21:$F33,1),0)
H23 =OFFSET($F21,MATCH(90,$F21:$F33,1),-4)
H24 =OFFSET($F21,MATCH(90,$F21:$F33,1)-1,0)
H25 =OFFSET($F21,MATCH(90,$F21:$F33,1)-1,-4)
H26 =(90-H24)/(H22-H24)*(H23-H25)+H25
Anybody have any suggestions? Every function that I've tried wants to match exactly to 90 or isn't capable of looking at so many fields of data. Any ideas are welcome!
Thank you ~ NikiLee