Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Combining 2 IF statements to make one formula.

I need to combine the following 2 IF statements, or find a different formula
to make this happen.

=IF($K$6="","",$K$6+14)

=EOMONTH(K6,0)

K6 is the starting date of a payperiod, so the first formula goes to the
15th of the month. The second formula is needed if the start of the payperiod
is the 16th.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Combining 2 IF statements to make one formula.

See if this is what you're looking for:

=IF($K$6="","",IF(DAY($K$6)=1,$K$6+14,DATE(YEAR($K $6),MONTH($K$6)+1,0)))

HTH,
Elkar



"Rip1877" wrote:

I need to combine the following 2 IF statements, or find a different formula
to make this happen.

=IF($K$6="","",$K$6+14)

=EOMONTH(K6,0)

K6 is the starting date of a payperiod, so the first formula goes to the
15th of the month. The second formula is needed if the start of the payperiod
is the 16th.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Combining 2 IF statements to make one formula.

Oh man thank you so much that worked perfectly for me! Thank you so much

"Elkar" wrote:

See if this is what you're looking for:

=IF($K$6="","",IF(DAY($K$6)=1,$K$6+14,DATE(YEAR($K $6),MONTH($K$6)+1,0)))

HTH,
Elkar



"Rip1877" wrote:

I need to combine the following 2 IF statements, or find a different formula
to make this happen.

=IF($K$6="","",$K$6+14)

=EOMONTH(K6,0)

K6 is the starting date of a payperiod, so the first formula goes to the
15th of the month. The second formula is needed if the start of the payperiod
is the 16th.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining IF Statements Carl Excel Worksheet Functions 2 November 24th 06 01:20 AM
Combining IF statements Macmo Excel Worksheet Functions 2 May 5th 06 05:17 AM
combining IF and AND statements for multiple columns cubsfan Excel Discussion (Misc queries) 2 April 7th 06 05:25 PM
combining conditional statements wrosie Excel Worksheet Functions 4 November 29th 05 09:59 AM
Combining IF and multiple SUMIF statements, if A>0 & B is between Lee Excel Worksheet Functions 1 January 3rd 05 06:46 PM


All times are GMT +1. The time now is 04:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"