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  

Fix EXACT function so it always compares in the same row.



 
 
Thread Tools Display Modes
  #1  
Old January 5th, 2008, 12:04 AM posted to microsoft.public.excel.worksheet.functions
soilcon1
external usenet poster
 
Posts: 2
Default Fix EXACT function so it always compares in the same row.

I am using the EXACT function in column B to compare if information in column
A is the same as column C on a spreadsheet. If it is not, I am inserting
cells above all the data in column C until I find a match with column A.
What is happening is that the EXACT function seems to stay fixed with it's
original cell in column C. Example:

A1=apple, C1=orange, B1=EXACT(A1,C1) results in FALSE

But, A2=orange and C1=orange, so I insert a cell above the cell in C so that
it becomes C2. So now:

A2=orange and C2=orange. But the EXACT function in column B in row 2 now
says:

B2=EXACT(A2,C3). C3=banna, so the result if False.

I want the function to remain B2=EXACT(A2,C2), NOT change to C3.

When more data is entered into the rows A and C later, I need to be able to
fill the EXACT formula down, so I don't think I can use $. I don't want to
enter the function individually into each cell in column B.

Any ideas?

  #2  
Old January 5th, 2008, 01:16 AM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
Default Fix EXACT function so it always compares in the same row.

To satisfy the process that you describe,
you could place this in B1:
=EXACT(OFFSET(INDIRECT("A1"),ROWS($1:1)-1,),OFFSET(INDIRECT("A1"),ROWS($1:1)-1,2))
Fill down as required. It'll return the results that you seek.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"soilcon1" wrote:
I am using the EXACT function in column B to compare if information in column
A is the same as column C on a spreadsheet. If it is not, I am inserting
cells above all the data in column C until I find a match with column A.
What is happening is that the EXACT function seems to stay fixed with it's
original cell in column C. Example:

A1=apple, C1=orange, B1=EXACT(A1,C1) results in FALSE

But, A2=orange and C1=orange, so I insert a cell above the cell in C so that
it becomes C2. So now:

A2=orange and C2=orange. But the EXACT function in column B in row 2 now
says:

B2=EXACT(A2,C3). C3=banna, so the result if False.

I want the function to remain B2=EXACT(A2,C2), NOT change to C3.

When more data is entered into the rows A and C later, I need to be able to
fill the EXACT formula down, so I don't think I can use $. I don't want to
enter the function individually into each cell in column B.

Any ideas?

  #3  
Old January 5th, 2008, 01:45 AM posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
external usenet poster
 
Posts: 2,496
Default Fix EXACT function so it always compares in the same row.

A macro would do it, but to use formulas, you can follow these
instructuions.

Insert two columns at column C, so that your original data in column C is
moved to column E. Then, in the new cell C1, use the formula

=IF(ISERROR(MATCH(ROW(),D,FALSE)),"",INDEX(E:E,M ATCH(ROW(),D,FALSE)))

and in cell D1, use the formula

=IF(SUMPRODUCT(EXACT($A$1:$A$100,E1)*1)1,"There are " &
SUMPRODUCT(EXACT($A$1:$A$100,E1)*1) & " EXACT matches for " & E1,
SUMPRODUCT(EXACT($A$1:$A$100,E1)*ROW($A$1:$A$100)) )

Increas the row of the $A$100s to reflect your list in column A.

Then copy C1 down to match your list in column A, and copy D1 down to match
your list in column E.

Then copy column C and past special values, and get rid of columns D and E.

HTH,
Bernie
MS Excel MVP


"soilcon1" wrote in message
...
I am using the EXACT function in column B to compare if information in
column
A is the same as column C on a spreadsheet. If it is not, I am inserting
cells above all the data in column C until I find a match with column A.
What is happening is that the EXACT function seems to stay fixed with it's
original cell in column C. Example:

A1=apple, C1=orange, B1=EXACT(A1,C1) results in FALSE

But, A2=orange and C1=orange, so I insert a cell above the cell in C so
that
it becomes C2. So now:

A2=orange and C2=orange. But the EXACT function in column B in row 2 now
says:

B2=EXACT(A2,C3). C3=banna, so the result if False.

I want the function to remain B2=EXACT(A2,C2), NOT change to C3.

When more data is entered into the rows A and C later, I need to be able
to
fill the EXACT formula down, so I don't think I can use $. I don't want
to
enter the function individually into each cell in column B.

Any ideas?



  #4  
Old January 5th, 2008, 02:25 AM posted to microsoft.public.excel.worksheet.functions
Ron Coderre
external usenet poster
 
Posts: 1,922
Default Fix EXACT function so it always compares in the same row.

Try this:

C1: =EXACT(INDEX(A:A,ROW()),INDEX(C:C,ROW()))
Copy that formula down as far as you need

Does that help?
Post back if you have more questions.
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"soilcon1" wrote in message
...
I am using the EXACT function in column B to compare if information in
column
A is the same as column C on a spreadsheet. If it is not, I am inserting
cells above all the data in column C until I find a match with column A.
What is happening is that the EXACT function seems to stay fixed with it's
original cell in column C. Example:

A1=apple, C1=orange, B1=EXACT(A1,C1) results in FALSE

But, A2=orange and C1=orange, so I insert a cell above the cell in C so
that
it becomes C2. So now:

A2=orange and C2=orange. But the EXACT function in column B in row 2 now
says:

B2=EXACT(A2,C3). C3=banna, so the result if False.

I want the function to remain B2=EXACT(A2,C2), NOT change to C3.

When more data is entered into the rows A and C later, I need to be able
to
fill the EXACT formula down, so I don't think I can use $. I don't want
to
enter the function individually into each cell in column B.

Any ideas?



  #5  
Old January 5th, 2008, 10:41 AM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
Default Fix EXACT function so it always compares in the same row.

C1: =EXACT(INDEX(A:A,ROW()),INDEX(C:C,ROW()))

Believe Ron meant to place the above formula in B1, not in C1 g
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


  #6  
Old January 7th, 2008, 04:45 PM posted to microsoft.public.excel.worksheet.functions
soilcon1
external usenet poster
 
Posts: 2
Default Fix EXACT function so it always compares in the same row.

Ron's suggestion worked great. Yes, Max is right, the placement is in B1.
Thanks everyone!

"Max" wrote:

C1: =EXACT(INDEX(A:A,ROW()),INDEX(C:C,ROW()))


Believe Ron meant to place the above formula in B1, not in C1 g
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---



 




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 09:22 PM.


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