New Excel Forum

This forum has been moved to TeachExcel.com

Ask all future questions in the New Excel Forum.

ExcelKey

If clause statement

Formulas, Functions, Formatting, Charts, Data Analysis, etc.

If clause statement

Postby sandy » Tue Feb 16, 2016 2:22 pm

Hello,

I have a date column from 12/1/2015 to 12/31/2015 and I want to create another column with pay period ending date has 12/15/2015 and 12/31/15.
How do I come up with an IF clause statement?

Thank you
  • 0

sandy
Rookie
 
Posts: 1
Joined: Feb 16, 2016
Reputation: 0
Excel Version: 2013

Re: If clause statement

Postby gebobs » Wed Feb 17, 2016 2:03 pm

It's not entirely clear what you want. What is the relationship between the two columns? Is pay period ending equal to 12/15 for any date on or before that and 12/31 for any date otherwise? If that's the case, then this should work:

Code: Select all
=DATE(2015,12,IF(A1<=DATE(2015,12,15),15,31))
  • 1

gebobs
Regular
 
Posts: 74
Joined: Feb 23, 2015
Reputation: 9
Excel Version: 2010


Return to General Excel Questions

Who is online

Users browsing this forum: Google Feedfetcher and 131 guests