Help with the Round function

microhunt

Board Regular
Joined
Aug 14, 2017
Messages
63
Office Version
  1. 2021
Platform
  1. Windows
Hi, Everyone, I am using the following formula with the round function, which works fine.

Excel Formula:
=ROUND(SUM(M4/52*4),2)

However, I find it difficult to get the round function working within the formula below in the same way. =Round,2

Excel Formula:
=IF(M4>0,IF(V4=FALSE,SUM(B4:D4)-H4,+N4-H4),"")

I really appreciate any help you can provide.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Try this:
Excel Formula:
=IF(M4>0,IF(V4=FALSE,ROUND(SUM(B4:D4)-H4,2),ROUND(N4-H4,2)),"")

By the way, the SUM in your first formula serves no purpose since you are only dealing with one cell. You can simply use:
Excel Formula:
=ROUND(M4/52*4,2)
 
Upvote 0
How about this?
=IF(M4>0,ROUND(IF(V4=FALSE,SUM(B4:D4)-H4,+N4-H4),2),"")
 
Upvote 0
Try this:
Excel Formula:
=IF(M4>0,IF(V4=FALSE,ROUND(SUM(B4:D4)-H4,2),ROUND(N4-H4,2)),"")

By the way, the SUM in your first formula serves no purpose since you are only dealing with one cell. You can simply use:
Excel Formula:
=ROUND(M4/52*4,2)
Thank you. The first formula use to deal with 2 other cells, and you are quite right, no purpose is served now. I have changed it and thanks very much.
 
Upvote 0
How about this?
=IF(M4>0,ROUND(IF(V4=FALSE,SUM(B4:D4)-H4,+N4-H4),2),"")
Yes, that is even more efficient. I originally thought that the "" pertained to the inner IF, and not the outer one.
So you only do need to add one ROUND function there, not two.
 
Upvote 0
Solution
microhunt,

Please Note: In the future, when marking a post as the solution, please mark the post that contains the solution (not your own post acknowledging that some other post was the solution).
When a post is marked as the solution, it is then shown right underneath the original question so people viewing the question can easily see the question and solution in a single quick glance without having to hunt through all the posts.

I have updated this thread for you. I chose Jeffrey's solution, as it uses the same concept as fine, but is more concise/efficient.
 
Upvote 0
You could shorten that a little bit by just putting the TRUE portion for V4 first instead of FALSE

=IF(M4>0,ROUND(IF(V4,N4-H4,SUM(B4:D4)-H4),2),"")
 
Upvote 0
Yes, that is even more efficient. I originally thought that the "" pertained to the inner IF, and not the outer one.
So you only do need to add one ROUND function there, not two.
Thank You
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top