A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Compare a cell to a range of cells



 
 
Thread Tools Display Modes
  #1  
Old February 16th, 2004, 06:06 PM
external usenet poster
 
Posts: n/a
Default Compare a cell to a range of cells

Could someone help me?

What I need is to compare one cell with 35 other static
cells. If the data in the main cell is the same as any of
the other cells it is compared against then I want to have
some thing like a 'X' else I want the output cell to be
the same as the main cell.. I hope that wasn't to
confusing!

So basically this would be;
=IF(AL8=AQ8:AQ43,"X",AL8)
=if(maincell=AnyOneOfASeriesOfCells,'X',maincell
How do I specify the range?

  #3  
Old February 17th, 2004, 09:43 AM
external usenet poster
 
Posts: n/a
Default Compare a cell to a range of cells

Perfect Frank. Thanks, your doing a great service..

-----Original Message-----
Hi
try
=IF(ISNA(MATCH(AL8,AQ8:AQ43,0)),AL8,"X")

--
Regards
Frank Kabel
Frankfurt, Germany

wrote:
Could someone help me?

What I need is to compare one cell with 35 other static
cells. If the data in the main cell is the same as any

of
the other cells it is compared against then I want to

have
some thing like a 'X' else I want the output cell to be
the same as the main cell.. I hope that wasn't to
confusing!

So basically this would be;
=IF(AL8=AQ8:AQ43,"X",AL8)
=if(maincell=AnyOneOfASeriesOfCells,'X',maincell
How do I specify the range?

.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:15 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.