#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Formula Question

I have a formula (geared towards adding up my project hours) that
reads, =A2-A1*24. This works fine. However, in addition, I need it
to also say if the result is zero then it should have a null value.
Is this possible?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Formula Question

On Feb 19, 10:06 am, wrote:
I have a formula (geared towards adding up my project hours) that
reads, =A2-A1*24. This works fine. However, in addition, I need it
to also say if the result is zero then it should have a null value.
Is this possible?


=if(A2 - A1*24 = 0, "", A2 - A1*24)

Unfortunately, I don't know any way to avoid computing the formula
twice, unless you are willing to use a helper cell, which you could
hide.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Formula Question

On Feb 19, 10:18 am, I wrote:
On Feb 19, 10:06 am, wrote:
I have a formula (geared towards adding up my project hours) that
reads, =A2-A1*24. This works fine. However, in addition, I need it
to also say if the result is zero then it should have a null value.


=if(A2 - A1*24 = 0, "", A2 - A1*24)
Unfortunately, I don't know any way to avoid computing the formula
twice


Well, I am assured that you can leave the formula as you had it and
simply set up a custom formula. But I have not yet figured the
correct syntax :-(.

However, if you null values for zeros for the entire spreadsheet, you
could uncheck Tools - Options - View - Zero Values.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Formula Question

On Feb 19, 10:39 am, I wrote:
Well, I am assured that you can leave the formula as you had it and
simply set up a custom formula. But I have not yet figured the
correct syntax :-(.


The Help documentation for custom formats leaves a lot to be desired.
But the following might suffice, if you currently use the General
format:

general;-general;

However, if you null values for zeros for the entire spreadsheet, you
could uncheck Tools - Options - View - Zero Values.


But I usually avoid "format" options that affect the entire
spreadsheet.


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
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
formula question searcher Excel Worksheet Functions 4 March 10th 06 02:00 PM
Formula question Craig Fletcher Excel Worksheet Functions 2 June 24th 05 03:58 PM
IF formula question Mad Dog Excel Discussion (Misc queries) 2 June 24th 05 03:50 PM
Formula Question dobball23 Excel Discussion (Misc queries) 4 May 19th 05 09:49 PM


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