Comparing Columns and returning value
Closed
Werdna
-
14 Apr 2010 à 09:34
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 15 Apr 2010 à 15:06
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 15 Apr 2010 à 15:06
Related:
- Comparing Columns and returning value
- Beyond and compare - Download - File management
- How to delete columns in word - Guide
- How to merge and compare two excel files - Guide
- Tweetdeck larger columns - Guide
- Display two columns in data validation list but return only one - Guide
1 response
rizvisa1
Posts
4478
Registration date
Thursday 28 January 2010
Status
Contributor
Last seen
5 May 2022
766
14 Apr 2010 à 10:50
14 Apr 2010 à 10:50
You want to use VLOOKUP
=VLOOKUP(A1, C:D, 2, false)
=VLOOKUP(A1, C:D, 2, false)
14 Apr 2010 à 13:03
However excel always shows "N/A" when I use that code.
14 Apr 2010 à 14:12
15 Apr 2010 à 13:55
It works now, thanks!!
And how would the formula look if column "D" wasn't next to "C"?
Also, because this will be for a longer list, isn't there something I can add to the formula so it won't return "#N/A" when it doesn't find a matching name? Like just leaving it blank or preferably using conditional formatting to change the "new" name in column A?
Again, thanks for your help!
15 Apr 2010 à 15:06
=VLOOKUP(A1, C:D, 2, false)
A1: Is the value that we are using to find the corresponding value
C:D is the range that we are using to match A1 and find the corresponding value
2: if you notice C and D makes two column. When match is found, it is saying use the 2nd column
false is saying that match has to be exact
Basically in long english the formula is saying look for value A1 in column C and when match is found, use the second column in range C:D ( which would be D) to give me its value