Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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. |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Nested IF function
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. |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Nested IF function
"Don Guillett" wrote...
Please TOP post. . . . If you don't like bottom posting, why reply the second time? |
#13
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Nested Function | Excel Discussion (Misc queries) | |||
can you nested sum and round function within if function? | Excel Worksheet Functions | |||
Offset function with nested match function not finding host ss. | Excel Worksheet Functions | |||
Nested Function | Excel Worksheet Functions | |||
Nested IF Function, Date Comparing, and NetworkDays Function | Excel Worksheet Functions |