#1   Report Post  
Eintsein_mc2
 
Posts: n/a
Default Problem Formula

Hi Guys, I have this formula =IF(G22="","",(H22+I22)*G22) What I use it
for is to add two different prices together then they get multiplied by
the amount entered into a cell. eg, H22=$2.24, I22=$0.52 and if I enter
1 into G22 it equals $2.76, which is correct. But if I enter a figue of
1800 into G22 I get a figue of $4961.42 when it should be $4968.00. Any
help for this novice would be great. Thanks

  #2   Report Post  
Alan
 
Posts: n/a
Default

Are the values in H22 and I22 the results of formulas? If so its probably a
rounding issue where for example 2.236458 is displayed as 2.24 but the
actual value is still 2.236458, try
=IF(G22="","",ROUND((H22+I22),2)*G22)
Regards,
Alan.
"Eintsein_mc2" wrote in message
oups.com...
Hi Guys, I have this formula =IF(G22="","",(H22+I22)*G22) What I use it
for is to add two different prices together then they get multiplied by
the amount entered into a cell. eg, H22=$2.24, I22=$0.52 and if I enter
1 into G22 it equals $2.76, which is correct. But if I enter a figue of
1800 into G22 I get a figue of $4961.42 when it should be $4968.00. Any
help for this novice would be great. Thanks



  #3   Report Post  
Eintsein_mc2
 
Posts: n/a
Default

Thanks Alan, you are right they are the results of formulas. Before I
asked for help I tried adding "ROUND" to the fomula but could not get
it to work. After looking at your formula I know why, Thanks for your
help.
Regards,
Simon

  #4   Report Post  
Alan
 
Posts: n/a
Default

Your welcome, BTW it can be simplified to
=IF(G22="","",ROUND(H22+I22,2)*G22)
Regards,
Alan.
"Eintsein_mc2" wrote in message
oups.com...
Thanks Alan, you are right they are the results of formulas. Before I
asked for help I tried adding "ROUND" to the fomula but could not get
it to work. After looking at your formula I know why, Thanks for your
help.
Regards,
Simon



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
Problem with formula in Excel Bill R Excel Worksheet Functions 3 August 15th 05 04:02 AM
problem with Array Formula OrdOff Excel Worksheet Functions 2 June 30th 05 05:57 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 04:28 AM
Problem with formula Sundaram Iyer Excel Discussion (Misc queries) 0 June 1st 05 01:49 AM
Need a formula for this problem Trying to excel in life but need help Excel Worksheet Functions 1 January 12th 05 12:05 PM


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