Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default how do I add round to a IF statement?

I have the following formula and I want to round the same cell. Is this
possible?
=IF(C8=0,C8*J8,J8)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default how do I add round to a IF statement?

=IF(C8=0,ROUND(C8*J8,0),round(J8,0))

"Kelly Ditsworth" wrote:

I have the following formula and I want to round the same cell. Is this
possible?
=IF(C8=0,C8*J8,J8)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default how do I add round to a IF statement?

Well, if C8 does equal zero, then C8*J8 will also equal zero, so your
formula could be written as:

=IF(C8=0,0,J8)

Did you mean to write:

=IF(C8=0,J8,J8*C8)

?

Anyway, to round it to 2 decimal places, for example, you can just put
ROUND around your formula (whichever it is) like this:

=ROUND(your_formula,2)

Hope this helps.

Pete

On Sep 2, 12:51*am, Kelly Ditsworth <Kelly
wrote:
I have the following formula and I want to round the same cell. *Is this
possible?
=IF(C8=0,C8*J8,J8)


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default how do I add round to a IF statement?

Sean: It worked like a champ. I been fighting this for quite awhile.
thanks so much!

"Sean Timmons" wrote:

=IF(C8=0,ROUND(C8*J8,0),round(J8,0))

"Kelly Ditsworth" wrote:

I have the following formula and I want to round the same cell. Is this
possible?
=IF(C8=0,C8*J8,J8)

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
Embedding an OR statement in an IF statement efficiently Chatnoir11 Excel Discussion (Misc queries) 4 February 2nd 09 08:12 PM
Round function in If statement penri0_0 Excel Discussion (Misc queries) 3 May 25th 06 12:50 PM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
Round in an IF statement heater Excel Discussion (Misc queries) 6 August 3rd 05 04:16 AM
How do I ROUND() round off decimals of a column dataset? Højrup Excel Worksheet Functions 2 January 12th 05 10:50 AM


All times are GMT +1. The time now is 09:43 PM.

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"