Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
T T is offline
external usenet poster
 
Posts: 41
Default 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?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default 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?

  #3   Report Post  
Posted to microsoft.public.excel.misc
T T is offline
external usenet poster
 
Posts: 41
Default 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?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 97
Default Compare 2 cells for a value

Hi,

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

HTH
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
How do I compare cells and if FALSE compare to next cell in EXCEL Cindie Excel Worksheet Functions 0 March 24th 06 05:29 PM
Compare cells mtpsuresh Excel Worksheet Functions 2 February 23rd 06 09:35 AM
Compare two cells from reference cells Mike K Excel Worksheet Functions 2 November 26th 05 02:07 PM
Compare cells (advanced) Matthew Benson Excel Discussion (Misc queries) 0 April 7th 05 10:53 AM
Compare cells johnny Excel Discussion (Misc queries) 3 April 4th 05 05:49 PM


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