LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 14
Default Need blank cells to remain empty

Thank you! The formula you provided was what I needed. Ii should have been
more clear in my original question as the blank cells only appeared in row K.
--
Bev


"JoeU2004" wrote:


"Bebe" wrote:
Not sure that I understand the formula. Is this
ONE formula or does the OR mean that you're giving
me a different option?


To answer your questions.... Yes, it is one formula, by definition. And
yes, Kassie __might__ be giving you a "different" option than you requested.
It seems to be exactly what you asked for. But only you can know for sure.
After you understand the explanation (below), if it is not what you want,
please clarify your requirements.

You wrote originally:
I created a basic formula [....], i.e. =K2-A2.
[....] The problem is that in the cells where there
is no value entered yet, [....] I'd like the [result]
to remain blank until information has been entered.


Note that you said "cells". That begs the question: which cells? Kassie
reasonably interpreted you to mean blank cells in either column A or K. To
that end, Kassie's formula seems correct as written.

You said you do not understand the formalu. Kassie's formula says: if
either A2 or K2 is blank, return a null string (which appears blank);
otherwise, return K2-A2.

But perhaps you are only concerned about blank cells in column A or column
K, not both. If so, pick the appropriate formula below:

=if(A2="","",K2-A2)

=if(K2="","",K2-A2)

On the other hand, perhaps you are aware that the result "" is not exactly
the same as leaving the cell "empty", and your intent is for the formula to
leave the cell truly "empty". That simply cannot be done, by definition.
So if the above formula (any one) is in M2, for example, any reference to M2
will have to be made to work even if M2 contains "". There are many ways to
do that. Post back if you need help with that.

HTH.


----- original posting -----

"Bebe" wrote in message
...
Not sure that I understand the formula. Is this ONE formula or does the
OR
mean that you're giving me a different option? Sorry to be such a dunce.
Thanks.
--
Bev


"Kassie" wrote:

Use =IF(OR(K2="",A2=""),"",K2-A2)

"Bebe" wrote:

I created a basic formula to calculate the number of days between two
dates
in a worksheet, i.e. =K2-A2. The formula worked fine in the 1st cell,
accurately calculating the number of days, so I dragged the formula to
the
remaining cells in Column K through 100. The problem is that in the
cells
where there is no value entered yet, Excel is calculating and returning
negative numbers, -39728, -39752, etc. I'd like the cells without
values to
remain blank until information has been entered. Thanks in advance
for the
help.
--
Bev




 
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
Nested IF that will ignore blank (empty) cells Struggling in Sheffield[_2_] New Users to Excel 10 February 9th 09 07:40 PM
Exporting a worksheet with blank/empty cells jjk98 Excel Discussion (Misc queries) 2 May 22nd 07 01:12 PM
How to freeze cells to always remain the same value Alex Excel Worksheet Functions 2 March 1st 07 06:06 PM
How can I make the box remain empty instead of N/A# VegasBurger Excel Worksheet Functions 2 June 14th 06 07:16 PM
Pivot table blank/empty cells Alan Synnott Excel Discussion (Misc queries) 1 August 3rd 05 01:37 PM


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