Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default Leave Blank If No Data

I have two columns of dollar amounts I want to add, E & F,and subtract the
third, G, and the results in column H.

So I entered the formula =Sum(E2+F2-G2) down column H and that works but it
automatically enters $0.00 down the column.

So I entered the following formula down column H and that got rid of the
$0.00 unless there is a value in E, F or G but if the results just happens to
total $0.00 then column H remains blank, I don't want that.

=IF(E2+F2-G2<0,(E2+F2-G2),"")

How can I tweak this formula to leave column H only blank when there isn't
anything entered.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 82
Default Leave Blank If No Data

George, assuming the case is that sometimes you have E,F, and G with no data,
this formula should help:

=IF(COUNTA(E2:G2)0;(E2+F2-G2);" ")

Regards,
Emece.-

"George" wrote:

I have two columns of dollar amounts I want to add, E & F,and subtract the
third, G, and the results in column H.

So I entered the formula =Sum(E2+F2-G2) down column H and that works but it
automatically enters $0.00 down the column.

So I entered the following formula down column H and that got rid of the
$0.00 unless there is a value in E, F or G but if the results just happens to
total $0.00 then column H remains blank, I don't want that.

=IF(E2+F2-G2<0,(E2+F2-G2),"")

How can I tweak this formula to leave column H only blank when there isn't
anything entered.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default Leave Blank If No Data

Emece - If tried to enter the formula in column H and I get an error message
that it contains a typo, won't except it.

George


"Emece" wrote:

George, assuming the case is that sometimes you have E,F, and G with no data,
this formula should help:

=IF(COUNTA(E2:G2)0;(E2+F2-G2);" ")

Regards,
Emece.-

"George" wrote:

I have two columns of dollar amounts I want to add, E & F,and subtract the
third, G, and the results in column H.

So I entered the formula =Sum(E2+F2-G2) down column H and that works but it
automatically enters $0.00 down the column.

So I entered the following formula down column H and that got rid of the
$0.00 unless there is a value in E, F or G but if the results just happens to
total $0.00 then column H remains blank, I don't want that.

=IF(E2+F2-G2<0,(E2+F2-G2),"")

How can I tweak this formula to leave column H only blank when there isn't
anything entered.

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Leave Blank If No Data

=IF(COUNT(E2:G2)0,E2+F2-G2,"")


"George" wrote:

Emece - If tried to enter the formula in column H and I get an error message
that it contains a typo, won't except it.

George


"Emece" wrote:

George, assuming the case is that sometimes you have E,F, and G with no data,
this formula should help:

=IF(COUNTA(E2:G2)0;(E2+F2-G2);" ")

Regards,
Emece.-

"George" wrote:

I have two columns of dollar amounts I want to add, E & F,and subtract the
third, G, and the results in column H.

So I entered the formula =Sum(E2+F2-G2) down column H and that works but it
automatically enters $0.00 down the column.

So I entered the following formula down column H and that got rid of the
$0.00 unless there is a value in E, F or G but if the results just happens to
total $0.00 then column H remains blank, I don't want that.

=IF(E2+F2-G2<0,(E2+F2-G2),"")

How can I tweak this formula to leave column H only blank when there isn't
anything entered.

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default Leave Blank If No Data

This works - Thanks a lot

"Teethless mama" wrote:

=IF(COUNT(E2:G2)0,E2+F2-G2,"")


"George" wrote:

Emece - If tried to enter the formula in column H and I get an error message
that it contains a typo, won't except it.

George


"Emece" wrote:

George, assuming the case is that sometimes you have E,F, and G with no data,
this formula should help:

=IF(COUNTA(E2:G2)0;(E2+F2-G2);" ")

Regards,
Emece.-

"George" wrote:

I have two columns of dollar amounts I want to add, E & F,and subtract the
third, G, and the results in column H.

So I entered the formula =Sum(E2+F2-G2) down column H and that works but it
automatically enters $0.00 down the column.

So I entered the following formula down column H and that got rid of the
$0.00 unless there is a value in E, F or G but if the results just happens to
total $0.00 then column H remains blank, I don't want that.

=IF(E2+F2-G2<0,(E2+F2-G2),"")

How can I tweak this formula to leave column H only blank when there isn't
anything entered.

Thanks



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Leave Blank If No Data

Try using commas instead of the semicolons:

=IF(COUNTA(E2:G2)0,E2+F2-G2,"")

I removed the ()'s from the E2+F2-G2 portion and I removed the space from the
final string.



George wrote:

Emece - If tried to enter the formula in column H and I get an error message
that it contains a typo, won't except it.

George

"Emece" wrote:

George, assuming the case is that sometimes you have E,F, and G with no data,
this formula should help:

=IF(COUNTA(E2:G2)0;(E2+F2-G2);" ")

Regards,
Emece.-

"George" wrote:

I have two columns of dollar amounts I want to add, E & F,and subtract the
third, G, and the results in column H.

So I entered the formula =Sum(E2+F2-G2) down column H and that works but it
automatically enters $0.00 down the column.

So I entered the following formula down column H and that got rid of the
$0.00 unless there is a value in E, F or G but if the results just happens to
total $0.00 then column H remains blank, I don't want that.

=IF(E2+F2-G2<0,(E2+F2-G2),"")

How can I tweak this formula to leave column H only blank when there isn't
anything entered.

Thanks


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default Leave Blank If No Data

This Works Too - Thanks a lot !

George


"Dave Peterson" wrote:

Try using commas instead of the semicolons:

=IF(COUNTA(E2:G2)0,E2+F2-G2,"")

I removed the ()'s from the E2+F2-G2 portion and I removed the space from the
final string.



George wrote:

Emece - If tried to enter the formula in column H and I get an error message
that it contains a typo, won't except it.

George

"Emece" wrote:

George, assuming the case is that sometimes you have E,F, and G with no data,
this formula should help:

=IF(COUNTA(E2:G2)0;(E2+F2-G2);" ")

Regards,
Emece.-

"George" wrote:

I have two columns of dollar amounts I want to add, E & F,and subtract the
third, G, and the results in column H.

So I entered the formula =Sum(E2+F2-G2) down column H and that works but it
automatically enters $0.00 down the column.

So I entered the following formula down column H and that got rid of the
$0.00 unless there is a value in E, F or G but if the results just happens to
total $0.00 then column H remains blank, I don't want that.

=IF(E2+F2-G2<0,(E2+F2-G2),"")

How can I tweak this formula to leave column H only blank when there isn't
anything entered.

Thanks


--

Dave Peterson
.

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
Leave Blank if No Value Linexe Excel Discussion (Misc queries) 4 January 28th 10 11:57 AM
Leave cell blank if no data Millerk Excel Discussion (Misc queries) 3 March 1st 06 02:58 PM
Do not show lack of data as a zero on graph lines, leave blank Just Joe Charts and Charting in Excel 1 February 15th 06 08:12 PM
Leave cell data (IF(ISNA(VLOOKUP) is TRUE instead of returning blank (" ") or #NA [email protected] Excel Worksheet Functions 6 October 27th 05 04:02 PM
leave cell blank bj Excel Discussion (Misc queries) 0 May 18th 05 05:43 PM


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