IF.... THEN cell EQUALS value from....

dunmore83

Well-known Member
Joined
Aug 24, 2011
Messages
540
Hi,

Help on the following would be much appreciated!

If cell L2 is text "Mid R1" then L2 = numerical value from cell H2

If cell L2 is text value "R1" then L2 = numerical value from cell I2

If cell L2 is text value "Mid R1" then L2 = numerical value from cell J2

If cell L2 is text value "Mid R1" then L2 = numerical value from cell K2

Hope you can help!

Cheers
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
You want a macro to change the actual value in cell L2 to something else? Or is this a formula you want to go in a cell next to L2?
 
Upvote 0
no its a formula but i now realise i need to add another column

so adjusted now to;

- if J2 = text "Mid R1" then K2 = value from H2

- if J2 = text "R1" then K2 = value from I2

Thanks for your help!!
 
Upvote 0

Forum statistics

Threads
1,224,506
Messages
6,179,158
Members
452,892
Latest member
yadavagiri

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