Lookup a value from a table and return a result using a formula

stefanov07

New Member
Joined
Jan 18, 2022
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
HI, I need to somehow lookup "where in a range" is my value and then based on the position, use a formula in the result field. Same as LOOKUP function but instead of returning a value, I need to return a formula that is using the original value that was looked up.

Example in picture: I put "18" in my field. I looks in a range (1-10, 10-100, 100-1000), then since it found that I am in the 10-100 range it returned a value pulled from a predetermined formula for that range. (example from picture: =5*18-10)

Please help. Thank you.
 

Attachments

  • 1111.JPG
    1111.JPG
    26.4 KB · Views: 9

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Hi,

Why not just have the formulas in Column F (in my sample) perform the calculation and do a LOOKUP?

Book3.xlsx
ABCDEF
1
2ValueRangeFormula
32119102
4109995
510099990
6
7Output
895
Sheet948
Cell Formulas
RangeFormula
F3F3=5*B3-3
F4F4=5*B3-10
F5F5=5*B3-15
B8B8=LOOKUP(B3,D3:D5,F3:F5)
 
Upvote 0
Hi jtakw, thank you for replying. I guess when I placed the problem statement I oversimplified it.
I actually need the formulas to reference "a general field" instead of that specific field (in your case B3). I need this because I have a table of fields (in my case 10) that all need to look to the table for reference, and then pull a result with a formula that references the value in the selected field. Like in the picture. Just in the picture unfortunately it is not a formula(since I dont know how to do it :)
, it is just a plain text. I hope it makes sense.
1642558211864.png
 
Upvote 0
Would something like this work?

Book3.xlsx
ABCDEFGHIJ
3Value1825364540751405003
4Output80115170215190365685248512
5
6
7193
8109910
910099915
Sheet948
Cell Formulas
RangeFormula
B4:J4B4=5*B3-LOOKUP(B3,$D7:$D9,$F7:$F9)
 
Upvote 0
Would something like this work?

Book3.xlsx
ABCDEFGHIJ
3Value1825364540751405003
4Output80115170215190365685248512
5
6
7193
8109910
910099915
Sheet948
Cell Formulas
RangeFormula
B4:J4B4=5*B3-LOOKUP(B3,$D7:$D9,$F7:$F9)
:D:D Im sorry, again I oversimplified the problem, thinking there will be a generic function that will work. Your solution works for the problem as I present it, but not for my real case. In reality the functions in the different tears are unrelated (they are not just a one number difference, as presented in the example). I actually need the "LOOKUP" function to then turn to a more complex formulas.
 
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,178
Members
448,871
Latest member
hengshankouniuniu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top