If formula for values between

slinky192001

Board Regular
Joined
Mar 16, 2007
Messages
100
Hello,

In column A i have a list of random numbers which can range between 0 and 700. I want to create and IF statement that will look at column A and say:

If A is less than 5 the "0 - 5 Days", IF A is between 5 and 30 then "5 - 30 Days", IF A is between 31 and 90 then "31 - 90 Days" and so on

I cannot figure out how to show between?

Any help would be greatly appreciated.

Thanks
C
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
You need to do an AND statement as well as the IF i.e.

=IF(A<5,"0-5 days",IF(AND(A>=5,A<=30),"5-30 days" etc. etc.

However there are more elegant solution to this and you would be better to build a table to look up the necessary values if you have more than a few IF's

or......... use the more elegant solution supplied by VOG!
 
Upvote 0

Forum statistics

Threads
1,224,506
Messages
6,179,159
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