ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   adding a formula in a cell but when cell = 0 cell is blank (https://www.excelbanter.com/excel-worksheet-functions/28439-adding-formula-cell-but-when-cell-%3D-0-cell-blank.html)

Mike T

adding a formula in a cell but when cell = 0 cell is blank
 
I am trying to create an invoice so when I put qty in cell A1 and the $ value
in cell B1, cell C1 has formula =B1*A1, thats fine, but having that formula
running down C2 C3 C4 etc where there is nothing entered yet, I have $0.00
appearing in each cell, My question is how can I use this formula or
something simular to get same answer to show a blank cell when not used
--
Thanks Mike T

Bob Phillips

=IF(AND(A1<"",B1<""),B1*A1,"")

--
HTH

Bob Phillips

"Mike T" wrote in message
...
I am trying to create an invoice so when I put qty in cell A1 and the $

value
in cell B1, cell C1 has formula =B1*A1, thats fine, but having that

formula
running down C2 C3 C4 etc where there is nothing entered yet, I have $0.00
appearing in each cell, My question is how can I use this formula or
something simular to get same answer to show a blank cell when not used
--
Thanks Mike T




Ragdyer

One way:

=IF(AND(B10,A10),B1*A1,"")
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"Mike T" wrote in message
...
I am trying to create an invoice so when I put qty in cell A1 and the $

value
in cell B1, cell C1 has formula =B1*A1, thats fine, but having that

formula
running down C2 C3 C4 etc where there is nothing entered yet, I have $0.00
appearing in each cell, My question is how can I use this formula or
something simular to get same answer to show a blank cell when not used
--
Thanks Mike T



Aladin Akyurek

Mike T wrote:
I am trying to create an invoice so when I put qty in cell A1 and the $ value
in cell B1, cell C1 has formula =B1*A1, thats fine, but having that formula
running down C2 C3 C4 etc where there is nothing entered yet, I have $0.00
appearing in each cell, My question is how can I use this formula or
something simular to get same answer to show a blank cell when not used


Custom format the formula cell as e.g.,

[=0]"";General

bj

Try
=if(A1*B1=0,"",A1*B1)

"Mike T" wrote:

I am trying to create an invoice so when I put qty in cell A1 and the $ value
in cell B1, cell C1 has formula =B1*A1, thats fine, but having that formula
running down C2 C3 C4 etc where there is nothing entered yet, I have $0.00
appearing in each cell, My question is how can I use this formula or
something simular to get same answer to show a blank cell when not used
--
Thanks Mike T


Duke Carey

Aladin -

Better to use a custom format such as

#,##0.00_);(#,##0.00);;

The spot between the second & third semicolons is for the zero format. If
left blank, zeros are suppressed. The last semicolon is for text values.
Since it, too, is blank in my example, no text values would show either

Duke

"Aladin Akyurek" wrote in message
...
Mike T wrote:
I am trying to create an invoice so when I put qty in cell A1 and the $
value in cell B1, cell C1 has formula =B1*A1, thats fine, but having that
formula running down C2 C3 C4 etc where there is nothing entered yet, I
have $0.00 appearing in each cell, My question is how can I use this
formula or something simular to get same answer to show a blank cell when
not used


Custom format the formula cell as e.g.,

[=0]"";General





All times are GMT +1. The time now is 06:35 PM.

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