+ Reply to Thread
Results 1 to 12 of 12

Vlookup and match

  1. #1
    Forum Contributor
    Join Date
    11-24-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    225

    Vlookup and match

    Dear Excel Forum

    Please help me to sort out some data from "all data" sheet to next sheet from vertical column to horizontal row wise. I have provided some manual data in 176 row for an example.

    Thanks in advance.

    Regards
    Shams
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Vlookup and match

    can you please clarify what you are trying to achieve
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Forum Contributor
    Join Date
    11-24-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    225

    Re: Vlookup and match

    Dear Hamesh

    Thanks for reply and sorry for the confusion. I would like to convert the F column (vertical column) in "all data file" sheet to horizontal (row wise) in "sorting of data sheet". For an example, in row 79 I have manually enter the values in G79 cell and onwards, which I am looking for from "all datasheet" file.

    Please let me know if it makes sense to you.

    Regards
    Shams

  4. #4
    Forum Contributor
    Join Date
    11-11-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Vlookup and match

    Hi Shams,

    Try this formula;

    Please Login or Register  to view this content.


    Note: This is an array formula, thus ensure you use Control+Shift+Enter after finishing the formula, not just Enter

  5. #5
    Forum Contributor
    Join Date
    11-24-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    225

    Re: Vlookup and match

    Dear Fletch74

    Thanks for your help. But I have no idea why the formula provide me N/A for all the data when I drag it down. I have attached it for your look.

    Thanks
    Shams
    Attached Files Attached Files

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Vlookup and match

    Did you use CTRL SHIFT Enter to enter that, and not just Enter?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Vlookup and match

    Looking at that formula again, I would change it to this...
    =INDEX('All data'!$F$1:$F$1000,MATCH('sorting of data'!$C79&G$1,'All data'!$A$1:$A$1000&'All data'!$B$1:$B$1000,0))
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    You should avoid using entire column references in ARRAY formulas (thats what that is by the way), as they tend to become resource-hogs and slow things down

  8. #8
    Forum Contributor
    Join Date
    11-11-2013
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    129

    Re: Vlookup and match

    Actually the reason for it not working is that there is no Data for those rows to Match (ie. Cell G80 - FY 2001, GVKEY 1076 is not in the "All Data" worksheet

    I would use Ford's formula, but with an IFERROR around it as that will remove the N/A's from your sheet.

    Please Login or Register  to view this content.
    Again remember the CNTRL+SHIFT+ENTER

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Vlookup and match

    Good addition, Fletch

  10. #10
    Forum Contributor
    Join Date
    11-24-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    225

    Re: Vlookup and match

    Dear all

    Thank you very much for excellent support.

    You guys are great.

    Thanks
    Shams

  11. #11
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Vlookup and match

    Hello Shams, you need to give the rep points to those who has provided you the solutions i.e. TO Fletch and Fdibbins not to me as I have asked you what you wanted to do and couldn't respond you back.

    Rep points are for deserving people. I don't deserve anything here.

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Vlookup and match

    Happy to help and thanks for the fredback

+ 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 to Pivot Table, using Match function, returns error if can't find match value
    By AndrewHowarth in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-16-2015, 12:10 AM
  2. vlookup for finding out wrongly spelled names and yet match the match
    By catchnanan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-03-2014, 04:29 PM
  3. Replies: 4
    Last Post: 01-13-2014, 04:16 AM
  4. Replies: 13
    Last Post: 12-13-2012, 11:44 AM
  5. Replies: 2
    Last Post: 03-16-2012, 12:03 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