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

I am trying to automate a price list, and get the sheet to return a selling
price on the variable cost price and markup amount. I have the formula:

=IF(D920,ROUNDUP(((D9+$P$10)+((D9+$P$10)*$P$3)),1 ),IF(D9<20,ROUNDUP(((D9+$P$9)+((D9+$P$9)*$P$3)),1) ,IF(D9<15,ROUNDUP(((D9+$P$8)+((D9+$P$8)*$P$3)),1), IF(D9<10,ROUNDUP(((D9+$P$7)+((D9+$P$7)*P7)),1),IF( D9<5,ROUNDUP(((D9+$P$6)+((D9+$P$6)*$P$3)),1))))))

D9 = cost price
p10 = uplift
p3 = sales tax to be added

This seems to work perfectly for the first two options, but returns the
second option for the other three. I have tried all variations of commas and
brackets to no avail.

Help would be greatly appreciated.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Nesting IF funtions

Suppose D9 is 10. This will result in the 2nd condition (D9<20) and the 3rd
condition <15 to be true... When you use nested IF arrange the conditions in
a sequential order and then either use < or .. For example

<10,<15,<20,<25

In the above if D9 is 10.... it checks the condition in order....Please try...


If this post helps click Yes
---------------
Jacob Skaria


"loweightes" wrote:

I am trying to automate a price list, and get the sheet to return a selling
price on the variable cost price and markup amount. I have the formula:

=IF(D920,ROUNDUP(((D9+$P$10)+((D9+$P$10)*$P$3)),1 ),IF(D9<20,ROUNDUP(((D9+$P$9)+((D9+$P$9)*$P$3)),1) ,IF(D9<15,ROUNDUP(((D9+$P$8)+((D9+$P$8)*$P$3)),1), IF(D9<10,ROUNDUP(((D9+$P$7)+((D9+$P$7)*P7)),1),IF( D9<5,ROUNDUP(((D9+$P$6)+((D9+$P$6)*$P$3)),1))))))

D9 = cost price
p10 = uplift
p3 = sales tax to be added

This seems to work perfectly for the first two options, but returns the
second option for the other three. I have tried all variations of commas and
brackets to no avail.

Help would be greatly appreciated.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Nesting IF funtions

Brilliant - many thanks., I would never have worked that out.

"Jacob Skaria" wrote:

Suppose D9 is 10. This will result in the 2nd condition (D9<20) and the 3rd
condition <15 to be true... When you use nested IF arrange the conditions in
a sequential order and then either use < or .. For example

<10,<15,<20,<25

In the above if D9 is 10.... it checks the condition in order....Please try...


If this post helps click Yes
---------------
Jacob Skaria


"loweightes" wrote:

I am trying to automate a price list, and get the sheet to return a selling
price on the variable cost price and markup amount. I have the formula:

=IF(D920,ROUNDUP(((D9+$P$10)+((D9+$P$10)*$P$3)),1 ),IF(D9<20,ROUNDUP(((D9+$P$9)+((D9+$P$9)*$P$3)),1) ,IF(D9<15,ROUNDUP(((D9+$P$8)+((D9+$P$8)*$P$3)),1), IF(D9<10,ROUNDUP(((D9+$P$7)+((D9+$P$7)*P7)),1),IF( D9<5,ROUNDUP(((D9+$P$6)+((D9+$P$6)*$P$3)),1))))))

D9 = cost price
p10 = uplift
p3 = sales tax to be added

This seems to work perfectly for the first two options, but returns the
second option for the other three. I have tried all variations of commas and
brackets to no avail.

Help would be greatly appreciated.

Thanks

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
Formula Funtions Garyp1961 Excel Worksheet Functions 9 May 11th 08 12:21 AM
FUNTIONS Mike Excel Worksheet Functions 0 May 30th 06 01:16 PM
nested funtions (IF OR) HudsonHouse Excel Worksheet Functions 1 October 20th 05 11:33 PM
help with spaces in funtions bill gras Excel Worksheet Functions 4 August 1st 05 01:36 PM
Nested Funtions StephanieH Excel Worksheet Functions 7 July 8th 05 01:33 PM


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