+ Reply to Thread
Results 1 to 12 of 12

Match, Hlookup or?? to relocate and match up data to sorted data

  1. #1
    Forum Contributor
    Join Date
    08-07-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    202

    Match, Hlookup or?? to relocate and match up data to sorted data

    I'm still playing around with Match and V/Hlookup functions and haven't gotten them fully understood yet, but this should be easy. If I can see it done or see how it works exactly I can normally do it from then on. Not having much luck wit this one though. I have a section that shows data for each month. Jan. thru Dec. I have it sorted from large to small below it. How would I go about taking, say there was 130 in Mar. and that was the largest sorted, then find 130 in the other section and have it find the 130 and Mar. above it from one chart and put the Mar. above the sorted chart? I have a sample to make it easier? If anyone has time to look at it that is. I really would appreciate it.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: Match, Hlookup or?? to relocate and match up data to sorted data

    I am sorry, but having looked at your workbook I have absolutely no clue about what you are trying to do! Could you provide a workbook that also shows your expected outcomes, manually entered?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    08-07-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: Match, Hlookup or?? to relocate and match up data to sorted data

    Sorry,
    I should have marked what was what on that. Pretty tired here. Let's try this one.
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: Match, Hlookup or?? to relocate and match up data to sorted data

    Ah, I see now! OK - give me a minute.

  5. #5
    Forum Contributor
    Join Date
    08-07-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: Match, Hlookup or?? to relocate and match up data to sorted data

    Quote Originally Posted by AliGW View Post
    Ah, I see now! OK - give me a minute.
    You are wonderful! Thank you so much!!!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: Match, Hlookup or?? to relocate and match up data to sorted data

    Sorry - got called away. Hopefully someone else will chime in.

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: Match, Hlookup or?? to relocate and match up data to sorted data

    One way

    in G3 and copy across (RANK to account for duplicates)

    =RANK(G2,$G$2:$R$2)+COUNTIF($G$2:G2,G2)-1

    In G5

    =INDEX($G$1:$R$1,MATCH(COLUMNS($G:G),$G$3:$R$3,0))

    in G6

    =INDEX($G$2:$R$2,MATCH(COLUMNS($G:G),$G$3:$R$3,0))

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Match, Hlookup or?? to relocate and match up data to sorted data

    Another way.

    Array enter this formula in G5 and fill across. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  9. #9
    Forum Contributor
    Join Date
    08-07-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: Match, Hlookup or?? to relocate and match up data to sorted data

    Quote Originally Posted by AliGW View Post
    Sorry - got called away. Hopefully someone else will chime in.

    It's alright. It got taken care of. Thank you so much for looking at it anyway. It is much appreciated!!!

  10. #10
    Forum Contributor
    Join Date
    08-07-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: Match, Hlookup or?? to relocate and match up data to sorted data

    Quote Originally Posted by JohnTopley View Post
    One way

    in G3 and copy across (RANK to account for duplicates)

    =RANK(G2,$G$2:$R$2)+COUNTIF($G$2:G2,G2)-1

    In G5

    =INDEX($G$1:$R$1,MATCH(COLUMNS($G:G),$G$3:$R$3,0))

    in G6

    =INDEX($G$2:$R$2,MATCH(COLUMNS($G:G),$G$3:$R$3,0))

    Thank you so, so much!!!!! Worked like a charm and was all I needed to finish my book! You are all amazing!!! Just amazing minds, abilities and people!!!

  11. #11
    Forum Contributor
    Join Date
    08-07-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: Match, Hlookup or?? to relocate and match up data to sorted data

    Quote Originally Posted by FlameRetired View Post
    Another way.

    Array enter this formula in G5 and fill across. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Thank you very much for your reply and help also! I have your formula in my list of go to's now also. I wish I knew half as much about Excel as you people! (I wouldn't get much done other than making sheet after sheet though!
    Thank you so much again!!!

  12. #12
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Match, Hlookup or?? to relocate and match up data to sorted data

    Quote Originally Posted by greenfox74 View Post
    ........... (I wouldn't get much done other than making sheet after sheet though!
    Thank you so much again!!!
    Heh, heh heh! You are welcome. Glad it does the job. And by-the-way I think they call that an addiction. It seems most of us have it here! LOL

+ 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. Index MATCH MATCH where I need 2 vlookups and 1 hlookup.
    By zhblack in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-02-2016, 03:30 PM
  2. [SOLVED] HELP! Dynamic data sorted lists Index & Match?!?
    By connmtc in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-27-2014, 11:52 AM
  3. match data 2 sheets. if match, then copy data from one sheet to another
    By flunzy in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-09-2013, 06:38 AM
  4. Match formula does not work when data is sorted
    By steinfm in forum Excel General
    Replies: 3
    Last Post: 11-22-2011, 09:39 PM
  5. Hlookup and Match or Index and Match?
    By katja328 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-06-2009, 12:33 PM
  6. index,match,match on un-sorted data
    By Brisbane Rob in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-24-2005, 05:04 PM
  7. Replies: 2
    Last Post: 04-06-2005, 07:06 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