VLookup/Index/Match...
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

[Closed] VLookup/Index/Match Nightmare

8 Posts
6 Users
0 Reactions
50 Views
Posts: 8819
Free Member
Topic starter
 

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 3:44 pm
Posts: 1781
Free Member
 

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


 
Posted : 26/03/2015 4:42 pm
Posts: 3652
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 4: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 4:51 pm
Posts: 1781
Free Member
 

SUMPRODUCT

It's like he can read my mind 🙂


 
Posted : 26/03/2015 4:57 pm
Posts: 8819
Free Member
Topic starter
 

Legend. The madness is over. Thanks again.


 
Posted : 26/03/2015 5: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 9:34 pm
Posts: 25815
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 9: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://singletrackmag.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 9:43 pm

6 DAYS LEFT
We are currently at 95% of our target!