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

We have the following formula in a worksheet:

=IF(C3<C6,C3-C16,IF(C16-C6<=0,ABS(C16-C6),0))

In the second statement C3-C16, we would also like to include if C3-C16 <
0, enter a 0 in the cell. Otherwise, just calculate C3-C16.

Any help would be appreciated!

Patti



--
Patti
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default Nested IF statement

Is this what you want?

=IF(C3<C6,MAX(C3-C16,0),IF(C16-C6<=0,ABS(C16-C6),0))

HTH
Kostis Vezerides

PattiP wrote:
We have the following formula in a worksheet:

=IF(C3<C6,C3-C16,IF(C16-C6<=0,ABS(C16-C6),0))

In the second statement "C3-C16", we would also like to include if C3-C16 <
0, enter a "0" in the cell. Otherwise, just calculate C3-C16.

Any help would be appreciated!

Patti



--
Patti


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default Nested IF statement

let try getting rid of nest..
with this one
=AND(C6C3,C3=C16,C16C6)*(C3-C16)+ABS(AND(C6=C16,C16<=C3)*(C16-C6))
copy n paste..
--
*****
birds of the same feather flock together..



"PattiP" wrote:

We have the following formula in a worksheet:

=IF(C3<C6,C3-C16,IF(C16-C6<=0,ABS(C16-C6),0))

In the second statement C3-C16, we would also like to include if C3-C16 <
0, enter a 0 in the cell. Otherwise, just calculate C3-C16.

Any help would be appreciated!

Patti



--
Patti

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Nested IF statement

Yes! It worked great. Thank you so much. We tried several options prior to
this but couldn't get it to work. THANK YOU!
--
Patti


"vezerid" wrote:

Is this what you want?

=IF(C3<C6,MAX(C3-C16,0),IF(C16-C6<=0,ABS(C16-C6),0))

HTH
Kostis Vezerides

PattiP wrote:
We have the following formula in a worksheet:

=IF(C3<C6,C3-C16,IF(C16-C6<=0,ABS(C16-C6),0))

In the second statement "C3-C16", we would also like to include if C3-C16 <
0, enter a "0" in the cell. Otherwise, just calculate C3-C16.

Any help would be appreciated!

Patti



--
Patti



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default Nested IF statement

How about simplifing the modified original formula as well to read:

=IF(C3<C6,MAX(C3-C16,0),MAX(C6-C16,0))

--
Thanks,
Shane Devenshire


"driller" wrote:

let try getting rid of nest..
with this one
=AND(C6C3,C3=C16,C16C6)*(C3-C16)+ABS(AND(C6=C16,C16<=C3)*(C16-C6))
copy n paste..
--
*****
birds of the same feather flock together..



"PattiP" wrote:

We have the following formula in a worksheet:

=IF(C3<C6,C3-C16,IF(C16-C6<=0,ABS(C16-C6),0))

In the second statement C3-C16, we would also like to include if C3-C16 <
0, enter a 0 in the cell. Otherwise, just calculate C3-C16.

Any help would be appreciated!

Patti



--
Patti

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 if statement with over 7 conditions - VBA? Isa Excel Discussion (Misc queries) 2 January 19th 07 08:41 PM
Nested IF statement with VLOOKUP James Hamilton Excel Discussion (Misc queries) 1 August 16th 06 07:46 AM
:confused: Nested if then else statement polk383 Excel Worksheet Functions 4 May 28th 06 06:02 PM
Problem with nested IF_OR statement DOOGIE Excel Worksheet Functions 7 June 24th 05 03:27 AM
7+ nested if statement? Turi Excel Worksheet Functions 3 December 20th 04 07:55 PM


All times are GMT +1. The time now is 01:13 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"