IF formula not working

dougOrama

New Member
Joined
Jan 28, 2018
Messages
3
Working on metadata for a music library. I'm having problems with an IF formula, there are five possible outcomes for the cell named "Tempo":
Unspecified
Very Fast (131+BPM)
Fast (111-130BPM)
Medium (90-110 BPM)
Slow (0-89 BPM)

In my formula, S2 is the BPM value of each song

=IF(S2<90,"Slow (0-90 BPM)",IF(S2>130,"Very Fast (131-130 BPM)",IF(AND(S2<111,S2>89), "MEDIUM (90-110 BPM)", IF(AND(S2<131,S2>110),"Fast (111-130 BPM)", "Unspecified”))))

I'm a a total newbie, thanks in advance for any help.
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Maybe this....but What defines "unspecified"
Code:
=IF(S2<90,"Slow (0-90 BPM))",IF(S2<111,"MEDIUM (90-110 BPM))",IF(S2<131,"Fast (111-130 BPM))",IF(S2>130,"Very Fast (131-130 BPM))"))))
 
Upvote 0
Hi,

A couple of ways:


Cell Formulas
RangeFormula
D1=IF(S2="","Unspecified",IF(S2>=131,"Very Fast (131+BPM)",IF(S2>=111,"Fast (111-130 BPM)",IF(S2>=90,"Medium (90-110 BPM)","Slow (0-89 BPM)"))))
E1=IF(S2="","Unspecified",LOOKUP(S2,{0,90,111,131},{"Slow (0-89 BPM)","Medium (90-110 BPM)","Fast (111-130 BPM)","Very Fast (131+ BPM)"}))
 
Upvote 0
Thanks so much! This is working except for "Unspecified" - the answer would be unspecified if there is no data there.

Maybe this....but What defines "unspecified"
Code:
=IF(S2<90,"Slow (0-90 BPM))",IF(S2<111,"MEDIUM (90-110 BPM))",IF(S2<131,"Fast (111-130 BPM))",IF(S2>130,"Very Fast (131-130 BPM))"))))
 
Upvote 0
You're welcome., welcome to the forum.
 
Upvote 0

Forum statistics

Threads
1,214,826
Messages
6,121,792
Members
449,048
Latest member
greyangel23

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