If And formulas

mikeywhits

Board Regular
Joined
Jun 7, 2010
Messages
80
Hi all,

I am trying to do the following...

cell A1 = 16/06/11, cell B1 = 33.

If A1 is todays date or has past this date, and B1 is less than 33 then True

Look forward to your responses.

Mike
 
=IF(AND(A1<=TODAY(),B1<33, B1>0),"R",IF(AND(A1<=TODAY(),B1>=33, B1<66),"A",IF(AND(A1<=TODAY(),B1>=66, B1<100),"G")))


You didn't specify your numbers very accurately.

What if B=33 or 66 or 100?

What if B>100?

What if B=0?


The above formula designates the following, check if this is what you want:
If B=33, A
If B=66, G
If you need to repeatedly use a volatile function throughout a formula it's better to use a cell to hold that value then refer to the cell:

X1 = =TODAY()

=IF(AND(A1<=X1,B1<33, B1>0),"R",IF(AND(A1<=X1,B1>=33, B1<66),"A",IF(AND(A1<=X1,B1>=66, B1<100),"G")))
 
Upvote 0

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,225,151
Messages
6,183,197
Members
453,151
Latest member
Lizamaison

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