Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

if commands

ResolvedVersion 2007

Giles has attended:
Excel Intermediate course

If commands

Hi. I am trying to create a command that comes up with the following words: "ok", "pending" and "due", where more than 5 days from the given deadline is "ok", less than 5 days is "pending" and less than 2 days is "due". This is my formula: =IF(D2-C2>5,"ok")=IF(D2-C2<5,"pending")=IF(D2-C2<2,"due"). The result I get is "true" or "false". Also, I tried to create conditional formatting, so "ok" is green, "pending" is yellow and "due" is red. I think I've done this, but as the words aren't appearing, I can't check.

thanks

Giles

RE: if commands

Hello Giles,

Try this formula,
=IF(D2-C2<2,"Pending",IF(D2-C2<5,"Due","OK"))

I hope this resolves your question. If it has, please mark this question as resolved.

If you require further assistance, please reply to this post. Or perhaps you have another Microsoft Office question?

Have a great day.
Regards,

Mark
Microsoft Office Specialist Trainer

Excel tip:

Create own ribbon tab - Excel 2010

a. In Excel click on the File tab
b. Select Options from left hand side
c. Choose the Customize Ribbon section
d. Click the New Tab button (below the list of tabs on the right hand side of the dialog box)
e. Select the New Tab (Custom) and enter a name, by clicking the Rename button (below the list of tabs on the right hand side of the dialog box)
f. Select the New Group (Custom) and enter a name, by clicking the Rename button (below the list of tabs on the right hand side of the dialog box)
g. Add commands to your tab and group by locating them on the list on the right hand side (remembering that you can change the list using the drop down box at the top of the list of commands) and clicking the Add button between the two panes to add them to your tab and group
h. You can rearrange the commands in your group, the groups on any tab or the tabs, using the up and down arrow buttons beside the list of tabs.
i. Click OK to apply your changes

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.