Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default ISBLANK IF STATEMENT

I HAVE A FIELD THAT CALCULATES THE AVERAGE DAYS TAKEN TO SEND CORRESPONDANCE.
THE FORMULA IN THIS CELL( H4) IS =SUM(G4-A4) THE PROBLEM IS THAT IF THERE IS
NO VALUE IN CELL (G4) THE VALUE RETURNED TO (H4) IS -39818. IS THERE A WAY TO
GET (H4) TO RETURN A VALUE OF ZERO (0)IF G4 IS EMPTY
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default ISBLANK IF STATEMENT

PDUB wrote...
I HAVE A FIELD THAT CALCULATES THE AVERAGE DAYS TAKEN TO SEND CORRESPONDANCE.
THE FORMULA IN THIS CELL( H4) IS =SUM(G4-A4) THE PROBLEM IS THAT IF THERE IS
NO VALUE IN CELL (G4) THE VALUE RETURNED TO (H4) IS -39818. IS THERE A WAY TO
GET (H4) TO RETURN A VALUE OF ZERO (0)IF G4 IS EMPTY


if G4 would always be greater than A4 when G4 isn't blank,

=max(G4-A4,0)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default ISBLANK IF STATEMENT

=IF(G4="",0,G4-A4)
--
Gary''s Student - gsnu200825


"PDUB" wrote:

I HAVE A FIELD THAT CALCULATES THE AVERAGE DAYS TAKEN TO SEND CORRESPONDANCE.
THE FORMULA IN THIS CELL( H4) IS =SUM(G4-A4) THE PROBLEM IS THAT IF THERE IS
NO VALUE IN CELL (G4) THE VALUE RETURNED TO (H4) IS -39818. IS THERE A WAY TO
GET (H4) TO RETURN A VALUE OF ZERO (0)IF G4 IS EMPTY

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default ISBLANK IF STATEMENT

Firstly, please get your caps lock key repaired so that you can stop
SHOUTING.

Secondly, you seem to have lost part of your SUM formula. You have given
the SUM function only one argument (G4-A4), and not told it what other
arguments you want to sum with it. If you want just G4-A4, the formula is
=G4-A4 and you don't need the SUM function. [If you want to know how to use
the SUM function, look it up in Excel help.]

Perhaps what you want is =IF(G4="",0,G4-A4) ?
--
David Biddulph

PDUB wrote:
I HAVE A FIELD THAT CALCULATES THE AVERAGE DAYS TAKEN TO SEND
CORRESPONDANCE. THE FORMULA IN THIS CELL( H4) IS =SUM(G4-A4) THE
PROBLEM IS THAT IF THERE IS NO VALUE IN CELL (G4) THE VALUE RETURNED
TO (H4) IS -39818. IS THERE A WAY TO GET (H4) TO RETURN A VALUE OF
ZERO (0)IF G4 IS EMPTY



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 144
Default ISBLANK IF STATEMENT

try

=IF(ISBLANK(G4),0,G4-A4)

Does this do what you want?
If not, post back

HTH
--
If this posting is helpful, appreciate that you click on the Yes button below

Thank You

cheers, francis



"PDUB" wrote:

I HAVE A FIELD THAT CALCULATES THE AVERAGE DAYS TAKEN TO SEND CORRESPONDANCE.
THE FORMULA IN THIS CELL( H4) IS =SUM(G4-A4) THE PROBLEM IS THAT IF THERE IS
NO VALUE IN CELL (G4) THE VALUE RETURNED TO (H4) IS -39818. IS THERE A WAY TO
GET (H4) TO RETURN A VALUE OF ZERO (0)IF G4 IS EMPTY



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default ISBLANK IF STATEMENT

That worked beautifully!
Thank You!
--
PDUB


"xlmate" wrote:

try

=IF(ISBLANK(G4),0,G4-A4)

Does this do what you want?
If not, post back

HTH
--
If this posting is helpful, appreciate that you click on the Yes button below

Thank You

cheers, francis



"PDUB" wrote:

I HAVE A FIELD THAT CALCULATES THE AVERAGE DAYS TAKEN TO SEND CORRESPONDANCE.
THE FORMULA IN THIS CELL( H4) IS =SUM(G4-A4) THE PROBLEM IS THAT IF THERE IS
NO VALUE IN CELL (G4) THE VALUE RETURNED TO (H4) IS -39818. IS THERE A WAY TO
GET (H4) TO RETURN A VALUE OF ZERO (0)IF G4 IS EMPTY

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default ISBLANK IF STATEMENT

I'm sorry I was working with the ISBLANK and forgot to click it off.
--
PDUB


"David Biddulph" wrote:

Firstly, please get your caps lock key repaired so that you can stop
SHOUTING.

Secondly, you seem to have lost part of your SUM formula. You have given
the SUM function only one argument (G4-A4), and not told it what other
arguments you want to sum with it. If you want just G4-A4, the formula is
=G4-A4 and you don't need the SUM function. [If you want to know how to use
the SUM function, look it up in Excel help.]

Perhaps what you want is =IF(G4="",0,G4-A4) ?
--
David Biddulph

PDUB wrote:
I HAVE A FIELD THAT CALCULATES THE AVERAGE DAYS TAKEN TO SEND
CORRESPONDANCE. THE FORMULA IN THIS CELL( H4) IS =SUM(G4-A4) THE
PROBLEM IS THAT IF THERE IS NO VALUE IN CELL (G4) THE VALUE RETURNED
TO (H4) IS -39818. IS THERE A WAY TO GET (H4) TO RETURN A VALUE OF
ZERO (0)IF G4 IS EMPTY




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 144
Default ISBLANK IF STATEMENT

You're welcome, glad that it work for you.
Thank you for your feedback.


--
If this posting is helpful, appreciate that you click on the Yes button below

Thank You

cheers, francis









"PDUB" wrote:

That worked beautifully!
Thank You!
--
PDUB


"xlmate" wrote:

try

=IF(ISBLANK(G4),0,G4-A4)

Does this do what you want?
If not, post back

HTH
--
If this posting is helpful, appreciate that you click on the Yes button below

Thank You

cheers, francis



"PDUB" wrote:

I HAVE A FIELD THAT CALCULATES THE AVERAGE DAYS TAKEN TO SEND CORRESPONDANCE.
THE FORMULA IN THIS CELL( H4) IS =SUM(G4-A4) THE PROBLEM IS THAT IF THERE IS
NO VALUE IN CELL (G4) THE VALUE RETURNED TO (H4) IS -39818. IS THERE A WAY TO
GET (H4) TO RETURN A VALUE OF ZERO (0)IF G4 IS EMPTY

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
IF AND ISBLANK Louise Excel Worksheet Functions 1 February 7th 08 08:03 PM
ISBLANK() kw_uh97 Excel Worksheet Functions 8 June 30th 07 06:42 AM
isBlank() alex Excel Worksheet Functions 6 February 8th 07 10:33 PM
Adding A Not(IsBlank) To IF Statement(help) getmhawks Excel Worksheet Functions 2 June 12th 06 10:43 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM


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