nested IF function help

cpisthedbb

New Member
Joined
Apr 10, 2018
Messages
30
Hi,

New to the forum, and fairly novice Excel user so bear with me if my questions really easy to answer :)


In cell A1 I have either "N/A" or a value. I want to put a number in cell A2 dependant on the value in A1. It would be as follows

N/A = 1
1-2 = 1
3-4 = 0.5
4+ = 0

Anyone any ideas what this would look like in a formula as I'm struggling to get this to work?
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
It looks a bit like your numerical values would be whole numbers (since you haven't given a return for, say, 2.5 or 0.75). If so, another option might be

=LOOKUP(N(A1),{0,3,5},{1,0.5,0})
 
Upvote 0
It looks a bit like your numerical values would be whole numbers (since you haven't given a return for, say, 2.5 or 0.75). If so, another option might be

=LOOKUP(N(A1),{0,3,5},{1,0.5,0})

Yes the values would be whole numbers in this case, thanks for your help though.
 
Upvote 0
Yes the values would be whole numbers in this case, thanks for your help though.
No problem.
So, as well as the lookup formula I suggested, the previous suggestion could also be shortened to this

=IF(N(A1)<3,1,IF(A1<5,0.5,0))
 
Upvote 0

Forum statistics

Threads
1,225,743
Messages
6,186,770
Members
453,370
Latest member
juliewar

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