Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PWK PWK is offline
external usenet poster
 
Posts: 27
Default Nested IF function

Hello All

=IF(ISBLANK(D2),"",TEXT(D2+3,"ddd"),IF(D2="Sun","M on",D2)))

I am using this function in a worksheet to insert day of week. When
the day "Sun" occurs I want "Mon" to show in the cell instead (I get a
too many argument error). I get very confused with nested functions.
Thanks for your help.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PWK PWK is offline
external usenet poster
 
Posts: 27
Default Nested IF function

On Dec 19, 8:26*am, "Don Guillett" wrote:
is D2 a proper date or is it text?

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"PWK" wrote in message

...



Hello All


=IF(ISBLANK(D2),"",TEXT(D2+3,"ddd"),IF(D2="Sun","M on",D2)))


I am using this function in a worksheet to insert day of week. When
the day "Sun" occurs I want "Mon" to show in the cell instead (I get a
too many argument error). I get very confused with nested functions.
Thanks for your help.- Hide quoted text -


- Show quoted text -


Don,
Thanks for your reply.
It is a date, in this case 11/13/2008
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Nested IF function

Hi,

Try this and format as DDD

=IF(ISNUMBER(D2),MAX(WEEKDAY(2),WEEKDAY(D2)),"")


Mike

"PWK" wrote:

Hello All

=IF(ISBLANK(D2),"",TEXT(D2+3,"ddd"),IF(D2="Sun","M on",D2)))

I am using this function in a worksheet to insert day of week. When
the day "Sun" occurs I want "Mon" to show in the cell instead (I get a
too many argument error). I get very confused with nested functions.
Thanks for your help.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PWK PWK is offline
external usenet poster
 
Posts: 27
Default Nested IF function

On Dec 19, 8:37*am, PWK wrote:
On Dec 19, 8:26*am, "Don Guillett" wrote:





is D2 a proper date or is it text?


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"PWK" wrote in message


....


Hello All


=IF(ISBLANK(D2),"",TEXT(D2+3,"ddd"),IF(D2="Sun","M on",D2)))


I am using this function in a worksheet to insert day of week. When
the day "Sun" occurs I want "Mon" to show in the cell instead (I get a
too many argument error). I get very confused with nested functions.
Thanks for your help.- Hide quoted text -


- Show quoted text -


Don,
Thanks for your reply.
It is a date, in this case 11/13/2008- Hide quoted text -

- Show quoted text -


Let me add to this. My formula is in cell L2 my formula should read
=IF(ISBLANK(D2),"",TEXT(D2+3,"ddd"),IF(L2="Sun","M on",L2))) as I said
I am confused.


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Nested IF function

It sounds as if what you want is
=IF(ISBLANK(D2),"",IF(TEXT(D2+3,"ddd")="Sun","Mon" ,TEXT(D2+3,"ddd")))

The principle of nesting is pretty easy. You just replace an argument of a
function by another function.

You started with
=IF(ISBLANK(D2),"",TEXT(D2+3,"ddd"))

Then replace
TEXT(D2+3,"ddd")
with
IF(TEXT(D2+3,"ddd")="Sun","Mon",TEXT(D2+3,"ddd"))
--
David Biddulph

"PWK" wrote in message
...
Hello All

=IF(ISBLANK(D2),"",TEXT(D2+3,"ddd"),IF(D2="Sun","M on",D2)))

I am using this function in a worksheet to insert day of week. When
the day "Sun" occurs I want "Mon" to show in the cell instead (I get a
too many argument error). I get very confused with nested functions.
Thanks for your help.



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Nested IF function

On Fri, 19 Dec 2008 05:17:58 -0800 (PST), PWK
wrote:

Hello All

=IF(ISBLANK(D2),"",TEXT(D2+3,"ddd"),IF(D2="Sun"," Mon",D2)))

I am using this function in a worksheet to insert day of week. When
the day "Sun" occurs I want "Mon" to show in the cell instead (I get a
too many argument error). I get very confused with nested functions.
Thanks for your help.



Try:

=IF(ISBLANK(D2),"",TEXT(D2+3+(WEEKDAY(D2+3)=1),"dd d"))

--ron
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PWK PWK is offline
external usenet poster
 
Posts: 27
Default Nested IF function

On Dec 19, 8:44*am, PWK wrote:
On Dec 19, 8:37*am, PWK wrote:





On Dec 19, 8:26*am, "Don Guillett" wrote:


is D2 a proper date or is it text?


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"PWK" wrote in message


....


Hello All


=IF(ISBLANK(D2),"",TEXT(D2+3,"ddd"),IF(D2="Sun","M on",D2)))


I am using this function in a worksheet to insert day of week. When
the day "Sun" occurs I want "Mon" to show in the cell instead (I get a
too many argument error). I get very confused with nested functions..
Thanks for your help.- Hide quoted text -


- Show quoted text -


Don,
Thanks for your reply.
It is a date, in this case 11/13/2008- Hide quoted text -


- Show quoted text -


Let me add to this. *My formula is in *cell L2 *my formula should read
=IF(ISBLANK(D2),"",TEXT(D2+3,"ddd"),IF(L2="Sun","M on",L2))) as I said
I am confused.- Hide quoted text -

- Show quoted text -


Thanks, Don

You put me in the right direction. My successful formula was =IF
(ISNUMBER(D2),MAX(WEEKDAY(2),WEEKDAY(D2+3)),"") Every day is a
learning experience. Thanks again.
  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PWK PWK is offline
external usenet poster
 
Posts: 27
Default Nested IF function

On Dec 19, 8:53*am, Ron Rosenfeld wrote:
On Fri, 19 Dec 2008 05:17:58 -0800 (PST), PWK
wrote:

Hello All


=IF(ISBLANK(D2),"",TEXT(D2+3,"ddd"),IF(D2="Sun"," Mon",D2)))


I am using this function in a worksheet to insert day of week. When
the day "Sun" occurs I want "Mon" to show in the cell instead (I get a
too many argument error). I get very confused with nested functions.
Thanks for your help.


Try:

=IF(ISBLANK(D2),"",TEXT(D2+3+(WEEKDAY(D2+3)=1),"dd d"))

--ron


Ron, Your formula worked also. Thanks to All




  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Nested IF function

On Fri, 19 Dec 2008 06:36:18 -0800 (PST), PWK
wrote:

Ron, Your formula worked also. Thanks to All


You're welcome. Thanks for the feedback.
--ron
  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Nested IF function

"Don Guillett" wrote...
Please TOP post. . . .


If you don't like bottom posting, why reply the second time?
  #13   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Nested IF function

Harlan,
Damn good question.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Harlan Grove" wrote in message
...
"Don Guillett" wrote...
Please TOP post. . . .


If you don't like bottom posting, why reply the second time?


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
Nested Function mrfrenchy Excel Discussion (Misc queries) 8 November 16th 06 12:03 AM
can you nested sum and round function within if function? anna Excel Worksheet Functions 4 May 27th 06 06:06 AM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Nested Function GAIL HORVATH Excel Worksheet Functions 3 May 25th 05 03:57 AM
Nested IF Function, Date Comparing, and NetworkDays Function carl Excel Worksheet Functions 2 December 29th 04 09:57 PM


All times are GMT +1. The time now is 11:35 AM.

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

About Us

"It's about Microsoft Excel"