+ Reply to Thread
Results 1 to 13 of 13

Kind of reverse vlookup

  1. #1
    Registered User
    Join Date
    09-06-2013
    Location
    Finland
    MS-Off Ver
    Excel 2010
    Posts
    4

    Kind of reverse vlookup

    Hi guys,

    I am trying to create a formula that would save a lot manual work that. I've already tried this with VLOOKUP and MATCH&INDEX but I can't get the results i want.

    Let's say I get a large set of data every week that I want to divide to different excel files (one file with one persons data). The masterdata will have the same columns every week, but the row's that belong to each person will variate every week. There are also a lot of data (columns) I don't want to include in the individual files. Originally I created a .bat file that would create template's for every person, and in the templates I tried to use vlookup and match/index formulas to grab the data from my masterdata excel as I open the individual files, but I didn't get it to work. Now I have no idea what I should try next, probably this should be done with macros/vba (as far as automatically creating individual excels per person goes at least..) but I have no experience with them.

    I have an example attached about what I would like to achieve.

    In the beginning I'd only have the sheet that's called Masterdata and what I would like to achieve (have in the end) are now in PersonX.xls sheet's which should really be separate files. In real life there are way more colums and data in the masterfile and way more individual excel's to be created. So im trying to find a shortcut so I wouldn't have to do all of copying, pasting and sorting.

    I've been browsing this forum for help since I did my master's thesis a bit over a year ago and i've noticed there are a lot of really advanced excel users here who can do almost anything so I wanted to give this a try.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Kind of reverse vlookup

    This looks a bit too easy, I must be missing something. I think you need to explain more. What columns of data are given in the personal files and what columns do you want to look up?
    Are the numbers unique?
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  3. #3
    Forum Contributor Bhuvi's Avatar
    Join Date
    04-19-2013
    Location
    Delhi, India
    MS-Off Ver
    MS Excel 2003,07,10
    Posts
    153

    Re: Kind of reverse vlookup

    Hi PettOne,

    To add to Jac's post, the personal nos. which you are trying to fetch info are not unique. I would suggest you to use the first column nos., to fetch the data through index+match.

    In the attachd sheet if you put the numbers (which is a unique value) for a person in col A in all the sheets and drag the formula right and down then you would, get the values. Please keep the column names same. The data range is also adjusted on its own.

    Thanks,
    Bhuvi


    <if my answer helped, please click on the * Star icon below this post to add some reputation.>
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    09-06-2013
    Location
    Finland
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Kind of reverse vlookup

    Well in the example file file I have included Numbers, Letters, People, Dates as values i want to include in the individual files in the end. So in the beginning i would only have empty templates with the columns i want to include, and i would want to look up the data for those columns from the master data. In real life the column's would be more like: euros, different reference numbers, companies etc, and they are all unique.

    When i tried this with vlookup I had the same return value (cell) in every cell of the data when i rolled down the formula (and for that i had to sort the master data to have the persons name in the first column, which is something I would also like to avoid).

    When I tried with match/index/row it included also other person's data as return values.

    But in short regarding the attached excel: I want to lookup the person's names from the data and include data in columns Numbers, Letters, People, Date, and it should look it up by the names in People -column

  5. #5
    Registered User
    Join Date
    06-30-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: Kind of reverse vlookup

    Check this out, this is not a perfect solution but if u hv 5-6 sheets where u want to import the data then it will help u perfectly...

    what i did i just give the rangename to each table in which u want to import the data and use this formula
    =IFERROR(VLOOKUP(A2,table2,3,FALSE),IFERROR(VLOOKUP(A2,table3,3,FALSE),(VLOOKUP(A2,table4,3,FALSE))))

    Note: this function will wrk on limited sheets only




    example.xlsx

  6. #6
    Forum Contributor Bhuvi's Avatar
    Join Date
    04-19-2013
    Location
    Delhi, India
    MS-Off Ver
    MS Excel 2003,07,10
    Posts
    153

    Re: Kind of reverse vlookup

    In the attached sheet post#3, you could add on more columns throughout the sheets, the formula would fetch values whenever the column names are same across all the sheets.

  7. #7
    Registered User
    Join Date
    06-30-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: Kind of reverse vlookup

    Sorry for the previous post I did't undrstnd the que.

    so check this file hope this is what u want




    example_2.xlsx

  8. #8
    Registered User
    Join Date
    09-06-2013
    Location
    Finland
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Kind of reverse vlookup

    The problem is that in the beginning i only have the masterdata, and the person1,2... sheet's should actually be their own individual excel files(there will be ~25 every time with the same persons names) and not sheet's in the masterfile.

    Only static data I will have is the person's names in one column, and all the other data is unique (euros, different references, cities, date's etc). Im sorry that my example was a bit unclear, as the number's are not ruolling (1,2,3,4..) in real life and there are no columns with static numbers

  9. #9
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Kind of reverse vlookup

    Like this then?
    Note that the formula giving the number is an array formula.
    I converted the first table to an Excel Table in order to get the correct ranges for the formulas.
    Note also that if you try to copy the formula to the right with the mouse it will fail as it will follow along with the columns. However, if you use Ctrl + r then it works.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    09-06-2013
    Location
    Finland
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Kind of reverse vlookup

    Thanks Jacc and pwnyadav007! I think I can do it with either one of these. I can probably just fetch the master data to an other template where I have the individual sheet's, then I will just have to look up something to automatically create the individual excels from the individual sheets! Does someone know how to manage something like that?

  11. #11
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Kind of reverse vlookup

    If you right click on a tab you can choose to move the sheet to a new workbook. Formulas update automatically.

    By the way, column E on my sheets are obviously redundant, just delete it.

  12. #12
    Registered User
    Join Date
    06-30-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: Kind of reverse vlookup

    yes Jacc is right , just keep one thing in the mind after moving sheets in new workbook,afterthat don't change the location of master sheet otherwise it will create an error to your formula sheets

    and jacc formulas is better than me so adopt that

  13. #13
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Kind of reverse vlookup

    Thanks pwnyadav007!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Vlookup is not working and giving =vlookup(B2,$T$2:$U$135,2,false) this kind of values.
    By yogeshsharma1981 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2013, 04:08 PM
  2. [SOLVED] Using Vlookup kind of function in Macro
    By Varun13 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-27-2013, 10:32 AM
  3. Some kind of vlookup required?
    By tcpeterso in forum Excel General
    Replies: 7
    Last Post: 01-14-2012, 11:06 PM
  4. a kind of reverse vlookup
    By critical-x in forum Excel General
    Replies: 2
    Last Post: 09-05-2009, 04:04 AM
  5. vlookup in vba... kind of
    By JChandler22 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-21-2008, 03:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1