ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Compare 2 cells for a value (https://www.excelbanter.com/excel-discussion-misc-queries/171673-compare-2-cells-value.html)

T

Compare 2 cells for a value
 
I know what I want to do but don't know how to get it done....any help
appritated.

I need to compare 2 cells and if BOTH of those cells are empty I need a "-"
in the cell, otherwise if one or both have a value I want to perform a
calculation. I have the following but it's not working. I think I just need
to know the correct symbol to use when comparing:

=(IF(E11 AND F11 = " ","-",G10+E11-F11))

HELP?

Kevin B

Compare 2 cells for a value
 
Change your formula as follows:

=IF(AND(E11="",F11=""),"-",G10+E11-F11)

--
Kevin Backmann


"T" wrote:

I know what I want to do but don't know how to get it done....any help
appritated.

I need to compare 2 cells and if BOTH of those cells are empty I need a "-"
in the cell, otherwise if one or both have a value I want to perform a
calculation. I have the following but it's not working. I think I just need
to know the correct symbol to use when comparing:

=(IF(E11 AND F11 = " ","-",G10+E11-F11))

HELP?


Carim[_2_]

Compare 2 cells for a value
 
Hi,

=(IF(AND(E11= " ",F11= " "),"-",G10+E11-F11)

HTH

T

Compare 2 cells for a value
 
Marry Me.....It worked perfectly! Thanks so much

"Kevin B" wrote:

Change your formula as follows:

=IF(AND(E11="",F11=""),"-",G10+E11-F11)

--
Kevin Backmann


"T" wrote:

I know what I want to do but don't know how to get it done....any help
appritated.

I need to compare 2 cells and if BOTH of those cells are empty I need a "-"
in the cell, otherwise if one or both have a value I want to perform a
calculation. I have the following but it's not working. I think I just need
to know the correct symbol to use when comparing:

=(IF(E11 AND F11 = " ","-",G10+E11-F11))

HELP?



All times are GMT +1. The time now is 12:51 PM.

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