I need help in IF Formula

doms123

Board Regular
Joined
Apr 19, 2011
Messages
58
Im using Excel2007 and i have an IF Formula having 2 logical test and 3 conditions

A1 is a date for example 04/10/2011

and i want to have an arguement like this

=if(A1=today(),"Due Today", "Waiting to be Validated")

=if(A1 < today(), "Overdue", "Waiting to be Validated")<TODAY(),"OVERDUE", p Validated?< be to ??Waiting ?Overdue?, Validated?)<TODAY(), ?Waiting>

<TODAY(), p Validated?< be to ??Waiting ?Overdue?, Validated?)<TODAY(), ?Waiting Validated?)<TODAY(),?OVERDUE?,>
<TODAY(), p Validated?< be to ??Waiting ?Overdue?, Validated?)<TODAY(), ?Waiting Validated?)<TODAY(),?OVERDUE?,>
I want it to be in Single expression or formula

Please Help me!!!
Thank you in Advance...
 
Last edited:

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi,

Does this work?

=IF(A1=TODAY(),"Due Today",IF(A1"<"TODAY(),"Overdue","Waiting to be Validated"))

Delete the " " here "<"


Ak
 
Upvote 0
Just in case the line..... Delete the " " here "<" confuses you

Code:
=IF(A1=TODAY(),"Due Today",IF(A1 < TODAY(),"Overdue","Waiting to be Validated"))
 
Upvote 0
Thanks man it works...

Can it be any way that if it is in Overdue it will be filled in red, if it is in due today it will be filled by yellow and if it is in waiting to be validated no fill at all??? I mean the whole row not the cell alone???
 
Upvote 0
Hi,

You said that you wanted the whole row and not just the cell, so just to clarify, do you want the cell in column T highlighting if Overdue etc appears in any of those cells or do you want the Row highlighting?

Example....


Excel Workbook
PQRSTUVW
1********
2*DogCatFishDue Today100300*
3*DogCatFishOverdue100300*
4*DogCatFishWaiting to be validated100300*
5********
Sheet5





Please clarify what you require.

Ak
 
Upvote 0
Good,

You need to highlight the whole range starting from the top left cell down to the bottom right cell. Im assuming A2:X10000

In 2007 press alt H L N or go to Conditional Formatting - New Rule - Use a formula etc.
In the white box put this....

=$T2="Due Today"

Click Format - Click Yellow, Click Ok, Click New Rule and put this formula in the white box.....

=$T2="Overdue"

Click Format - click Red, click Ok, click Ok

IF your range of cells starts in row 1 change the 2 in the above to 1, like wise if it is row 3 change it to 3, etc etc.

Good luck, I hope it works for you.

Ak
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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