Please help me smart people of the world - IF (range) contains...

indyella

New Member
Joined
Aug 17, 2014
Messages
2
I am going crazy trying to work out this excel problem:

......F

82 1.0
83 0.5
84 0.0
85 0.5
86 0.0
87 #

In order of priority, with only 1 number possible in f87

If range (f82:f86) has a 0.0 in it. cell f87 = 5 (if false go to next line)
If range (f82:f86) has a 0.5 in it. cell f87 = 10 (if false go to next line)
then range (f82:f86) must have 1.0 in it. cell f87 = 20

any help would be apreciated. thanks!
 

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.
Perhaps

=IF(COUNTIF(F82:F86,0)>1, 5, COUNTIF(F82:F86,.5)>0,10, 20))

If 0, .5, and 1 are the only possible entries in those cells

=CHOOSE(2*MIN(F82:F86)+1,5, 10,20)
 
Last edited:
Upvote 0
=CHOOSE(2*MIN(F82:F86)+1,5, 10,20)[/QUOTE]


thank-you so much for this. worked a treat. i wasted hours trying to work this out and you did it in mintues.

absolute champion!

cannot thank you or this board and its members enough
 
Upvote 0

Forum statistics

Threads
1,214,787
Messages
6,121,561
Members
449,038
Latest member
Guest1337

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