ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I reference an empty cell in a formula? (https://www.excelbanter.com/excel-worksheet-functions/149518-how-do-i-reference-empty-cell-formula.html)

srosebed

How do I reference an empty cell in a formula?
 
Trying to write an IF statement to return one value if the cell is empty and
another if not. For example, if the cell is empty, return the value above,
if not empty, return the value itself.

ExcelBanter AI

Answer: How do I reference an empty cell in a formula?
 
To reference an empty cell in a formula, you can use the ISBLANK function. Here's how you can write the IF statement to return one value if the cell is empty and another if not:
  1. Start by typing the equal sign (=) to begin the formula.
  2. Type the IF function, followed by an opening parenthesis.
  3. In the first argument of the IF function, use the ISBLANK function to check if the cell is empty. For example, if you want to check if cell A1 is empty, you can use the formula
    Code:

    =IF(ISBLANK(A1), "Value above", "Value itself")
    .
  4. If the cell is empty, the formula will return "Value above". If the cell is not empty, the formula will return "Value itself".
  5. Close the parentheses and press Enter to complete the formula.

Note that you can replace "Value above" and "Value itself" with any values or formulas that you want to return based on whether the cell is empty or not.

Toppers

How do I reference an empty cell in a formula?
 
=if(ISBLANK(A2),A1,A2)

"srosebed" wrote:

Trying to write an IF statement to return one value if the cell is empty and
another if not. For example, if the cell is empty, return the value above,
if not empty, return the value itself.


Vasant Nanavati

How do I reference an empty cell in a formula?
 
=IF(C2="",C1,C2)

if I understand you correctly.
__________________________________________________ _________________________

"srosebed" wrote in message
...
Trying to write an IF statement to return one value if the cell is empty
and
another if not. For example, if the cell is empty, return the value
above,
if not empty, return the value itself.




Peo Sjoblom

How do I reference an empty cell in a formula?
 
It depends, would the cell be the next cell above?

=IF(A5="",A4,A5)


--
Regards,

Peo Sjoblom


"srosebed" wrote in message
...
Trying to write an IF statement to return one value if the cell is empty
and
another if not. For example, if the cell is empty, return the value
above,
if not empty, return the value itself.




srosebed

How do I reference an empty cell in a formula?
 
That's it!! Thanks a million.

"Toppers" wrote:

=if(ISBLANK(A2),A1,A2)

"srosebed" wrote:

Trying to write an IF statement to return one value if the cell is empty and
another if not. For example, if the cell is empty, return the value above,
if not empty, return the value itself.


srosebed

How do I reference an empty cell in a formula?
 
Thanks!

"Peo Sjoblom" wrote:

It depends, would the cell be the next cell above?

=IF(A5="",A4,A5)


--
Regards,

Peo Sjoblom


"srosebed" wrote in message
...
Trying to write an IF statement to return one value if the cell is empty
and
another if not. For example, if the cell is empty, return the value
above,
if not empty, return the value itself.





srosebed

How do I reference an empty cell in a formula?
 
Thanks! for another approach.

"Vasant Nanavati" wrote:

=IF(C2="",C1,C2)

if I understand you correctly.
__________________________________________________ _________________________

"srosebed" wrote in message
...
Trying to write an IF statement to return one value if the cell is empty
and
another if not. For example, if the cell is empty, return the value
above,
if not empty, return the value itself.





remove dupplicate entry[_2_]

How do I reference an empty cell in a formula?
 


"srosebed" wrote:

Trying to write an IF statement to return one value if the cell is empty and
another if not. For example, if the cell is empty, return the value above,
if not empty, return the value itself.


remove dupplicate entry[_2_]

How do I reference an empty cell in a formula?
 


"srosebed" wrote:

That's it!! Thanks a million.

"Toppers" wrote:

=if(ISBLANK(A2),A1,A2)

"srosebed" wrote:

Trying to write an IF statement to return one value if the cell is empty and
another if not. For example, if the cell is empty, return the value above,
if not empty, return the value itself.


remove dupplicate entry[_2_]

How do I reference an empty cell in a formula?
 


"Vasant Nanavati" wrote:

=IF(C2="",C1,C2)

if I understand you correctly.
__________________________________________________ _________________________

"srosebed" wrote in message
...
Trying to write an IF statement to return one value if the cell is empty
and
another if not. For example, if the cell is empty, return the value
above,
if not empty, return the value itself.






All times are GMT +1. The time now is 08:19 PM.

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