Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 07-02-2009, 08:59 PM
saso_MK saso_MK is offline
Registered User
 
Join Date: 02 Jul 2009
Location: Macedonia
MS Office Version:Excel 2003
Posts: 4
saso_MK is becoming part of the community
use one instead 2 formulas?

Please Register to Remove these Ads

I need a little help with my formulas.
I would like to make more complex formula and avoid using 2 columns with formulas, when decreasing values with percentage.

I would like to avoid column C, and have result complete in column D with one formula.

Is this possible?

Can anybody help? ...thanks in advance.


The sample file is attached
Attached Files
File Type: xls sample 666 .xls (17.0 KB, 4 views)
Reply With Quote
  #2  
Old 07-02-2009, 09:11 PM
Domenic Domenic is offline
Forum Guru
 
Join Date: 18 Jun 2004
Location: Canada
Posts: 1,243
Domenic has an addiction to Excel
Re: use one instead 2 formulas?

Try...

C2, copied down:

=A2-(A2*IF(B2="1",5,IF(B2="2",2))/100)

I'm not sure why you've formatted the numbers returned by the formula in Column B as text. It could pose a potential problem in some mathematical calculations. You may want to consider the following instead...

B2, copied down:

=IF(A2>119,1,IF(A2>89,2,))

C2, copied down:

=A2-(A2*IF(B2=1,5,IF(B2=2,2))/100)
__________________
Domenic
Microsoft MVP - Excel
xl-central.com, "Your Quick Reference to Excel Solutions"
Reply With Quote
  #3  
Old 07-02-2009, 09:38 PM
saso_MK saso_MK is offline
Registered User
 
Join Date: 02 Jul 2009
Location: Macedonia
MS Office Version:Excel 2003
Posts: 4
saso_MK is becoming part of the community
Re: use one instead 2 formulas?

Thank you Domenic.
Nice point and problem solved.
I used text as return as I am newbee... in this, but your suggestion is right.

Regards,
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Forum Jump