Forum menu
VLookup/Index/Match...
 

[Closed] VLookup/Index/Match Nightmare

Posts: 8948
Free Member
Topic starter
 
[#6959475]

brain frazzled, need help

I wnat to search a range of text filled cells to return a value from that row if all the cells in the 'lookup value' range = all the cells in the range in the equivalent doc.

Basically I want a way of copying the text in a cell and pasting it into the reciving cell if all the preceeding values in the recieving row match the source row.

The backstory is I've compiled a 'master register' based on the content of a number of 'account registers' but have made some chages/additions and now want to 'back populate' the account registers with this new information............

GO!


 
Posted : 26/03/2015 4:44 pm
Posts: 5346
Free Member
 

email me a sample workbook and I *may* be able to help 🙂


 
Posted : 26/03/2015 5:42 pm
Posts: 3676
Full Member
 

What do you mean by 'preceding cells'.
Above the cell whose value you want to return? to the left of it?

You can do a vlookup where the lookup value is concatenated e.g

=VLOOKUP(G2&H2,A:C,3,FALSE)

but the first column of the range has to be one cell (e.g. G2 is "single" and H2 is "track" so it will only find a match if a cell in column A contains "singletrack"

I'd make a big concatenated cell that picks up everything relating to that line e.g.:
=A2&"¦"&B2&"¦"&C2&"¦"&D2 etc
and do the same in the destination sheet, then do the lookup or match & index between those two cells rather than trying to do it on a range.


 
Posted : 26/03/2015 5:48 pm
Posts: 36
Free Member
 

I'd make a big concatenated cell that picks up everything relating to that line e.g.:
=A2&"¦"&B2&"¦"&C2&"¦"&D2 etc

would work.

Also, SUMPRODUCT, would be another way.

Rob's obviously bored this afternoon, so email him. I have to go cook tea for the [s]animals[/s] children 🙂


 
Posted : 26/03/2015 5:51 pm
Posts: 5346
Free Member
 

SUMPRODUCT

It's like he can read my mind 🙂


 
Posted : 26/03/2015 5:57 pm
Posts: 8948
Free Member
Topic starter
 

Legend. The madness is over. Thanks again.


 
Posted : 26/03/2015 6:19 pm
Posts: 0
Free Member
 

Can you explain how sumproduct would be used in this case?
I'd have gone down the concat route so interested in learning alternative techniques.


 
Posted : 26/03/2015 10:34 pm
Posts: 25941
Full Member
 

Wow, I was going to post up some bullshit about concatenating. Never been "right" before

I'm claiming sub-guru status 😀


 
Posted : 26/03/2015 10:38 pm
Posts: 36
Free Member
 

dufusdip - it's really sad, but I got all excited about mastering a SUMPRODUCT technique a while ago and stuck it up in here

http://singletrackworld.com/forum/topic/just-learnt-a-powerful-new-excel-technique

Rob is proper smartz at this and added some very useful additional stuff to.


 
Posted : 26/03/2015 10:43 pm