Change the value of a cell based on another ... ?

robbaldock

New Member
Joined
Nov 23, 2015
Messages
1
Hi all,

Firstly, as always, apologies if this has been answered several times already! I have searched and tried various answers to no avail so now seeking professional help!?!?! :ROFLMAO:

Basically, all I wan't to do is change the value of one cell based on what is entered into another. To be exact; I want CELL K6 to display a result determined by CELL D6 .. so ..

IF D6=12 then I wan't K6 to show 34.00, IF D6=24 then K6=33.00, IF D6=36 then K6=32.75, IF D6=60 then K6=32.50 .. now it all sounds simple when you put it like that, but I have tried using IF statements, AND, OR and even conditional formatting and I just can't get it to work!

What am I doing wrong?!?!

Any help you can give would be much appreciated.

Thanks,
Rob.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Best way to do it is to set up a list, e.g. in sheet2
A B
Base Result
12 34.00
24 33.00
36 32.75
60 32.50

Then in K6: =VLOOKUP(D6,Sheet2!$A$2:$B$5,2,0)

This will look for D6 in Sheet2!A2:A5 and return the corresponding value from column B. The 0 is for exact match.
Alternatively you can use 1 if D6 can be any value in between e.g. 15 would return 34.00.

Adjust range Sheet2!$A$2:$B$5 as appropriate.

If this list is subject to frequent changes, I would recommend converting it to a table and reference the table in the VLOOKUP: =VLOOKUP(D6,tablename,2,0)
 
Upvote 0

Forum statistics

Threads
1,215,038
Messages
6,122,798
Members
449,095
Latest member
m_smith_solihull

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