Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have 2 columns in a sheet where the 2nd column is contained in the first. I mark each of them using MATCH and it works for a defined range , but when I try to expand the function to the whole column the matching range changes like this:

first line =MATCH(B1,E1:E277,0)

second line =MATCH(B2,E2:E278,0)

Actually I want to keep the 2nd line range of comparing as the first like this: =MATCH(B2,E1:E277,0)

And then apply it to the rest of the column (eg: for line 579 I should have =MATCH(B579,E1:E277,0))

share|improve this question
add comment

1 Answer 1

I found the answer accidentally looking for some resolution. The solution is to use "$" in front of the values that you do not need to change like in this example:

=MATCH(B1,$E$1:$E$277,0)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.