ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Roundup Function (https://www.excelbanter.com/excel-worksheet-functions/97078-roundup-function.html)

brown_toby

Roundup Function
 

I am having a problem with the following function:

=ROUNDUP((C5*C4),2)

Upon entering the above the cell shows: "#VALUE!" when cell C4 is
empty. I would like it to show zero when cell C4 is empty.


--
brown_toby
------------------------------------------------------------------------
brown_toby's Profile: http://www.excelforum.com/member.php...o&userid=35942
View this thread: http://www.excelforum.com/showthread...hreadid=557416


Bob Phillips

Roundup Function
 
=IF(C4="",0,=ROUNDUP((C5*C4),2))

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"brown_toby" wrote
in message ...

I am having a problem with the following function:

=ROUNDUP((C5*C4),2)

Upon entering the above the cell shows: "#VALUE!" when cell C4 is
empty. I would like it to show zero when cell C4 is empty.


--
brown_toby
------------------------------------------------------------------------
brown_toby's Profile:

http://www.excelforum.com/member.php...o&userid=35942
View this thread: http://www.excelforum.com/showthread...hreadid=557416




tim m

Roundup Function
 
Hmmm, when I tested your formula it did give me a zero if nothing was in C4.
In any case see if the formula below helps out.

=IF(C4="",0,ROUNDUP((C5*C4),2))

"brown_toby" wrote:


I am having a problem with the following function:

=ROUNDUP((C5*C4),2)

Upon entering the above the cell shows: "#VALUE!" when cell C4 is
empty. I would like it to show zero when cell C4 is empty.


--
brown_toby
------------------------------------------------------------------------
brown_toby's Profile: http://www.excelforum.com/member.php...o&userid=35942
View this thread: http://www.excelforum.com/showthread...hreadid=557416



Bearacade

Roundup Function
 

I can't duplicate your error...

But if need be... put this in..
=IF(AND(ISNUMBER(C4),ISNUMBER(C5)),ROUNDUP((C5*C4) ,2),0)


--
Bearacade


------------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
View this thread: http://www.excelforum.com/showthread...hreadid=557416



All times are GMT +1. The time now is 12:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com