Solved

Excel IF Statement

Posted on 2011-03-11
7
212 Views
Last Modified: 2012-06-27
I am new at IF statements.  I have a date in one cell (C2), example 5/20/2011.  I want my IF statement to read, IF C2 is less than today's date return text of Past, IF C2 is greater than today's date return text of Present.

Ulimately I have 1011 rows of data & I need to quickly be able to see which are past appointments and which are future appointments.
0
Comment
Question by:mltardif
7 Comments
 
LVL 2

Expert Comment

by:jimponder
ID: 35112013
=IF(C2<(TODAY()),"PAST","")
0
 
LVL 24

Accepted Solution

by:
jimyX earned 50 total points
ID: 35112015
In C3 put:
=IF(C2>=TODAY(),"present","past")

And copy down.
0
 
LVL 2

Expert Comment

by:nidash
ID: 35112027
the formula would be cell d1 and would look like

=IF(C1<TODAY(),"PAST","PRESENT")

then copy across the formulas to all rows, finally manage visibility using autofilter where you can choose 'PAST'or "PRESENT'to look at what you want quickly.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Closing Comment

by:mltardif
ID: 35112039
Thanks so much!!!
0
 
LVL 2

Expert Comment

by:jimponder
ID: 35112056
I get in first and don't get credit... nice.
0
 

Author Comment

by:mltardif
ID: 35112074
Sorry but yours was a little confusing, the other one was idiot proof.
0
 

Author Comment

by:mltardif
ID: 35112083
And this person thought to add > = which I never even thought of.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

943 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now