+ Reply to Thread
Results 1 to 8 of 8

Transfer values for matched columns

  1. #1
    Forum Contributor
    Join Date
    04-01-2014
    Location
    Middle east
    MS-Off Ver
    MICROSOFT OFFICE 2019
    Posts
    193

    Transfer values for matched columns

    Hey everybody;

    Please let me find formula for this:
    I need to transfer the values of matched names in one column to appear in front of its matched names in another column.
    In my example I want values of matched names form column "D" to
    appear in column "H" in front of those matched names.


    thank you
    Attached Files Attached Files

  2. #2
    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
    53,048

    Re: Transfer values for matched columns

    Try this, copied down...
    =IFERROR(VLOOKUP(G4,$C$4:$D$8,2,0),"")
    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

  3. #3
    Forum Contributor
    Join Date
    04-01-2014
    Location
    Middle east
    MS-Off Ver
    MICROSOFT OFFICE 2019
    Posts
    193

    Re: Transfer values for matched columns

    Quote Originally Posted by FDibbins View Post
    Try this, copied down...
    =IFERROR(VLOOKUP(G4,$C$4:$D$8,2,0),"")
    I afraid it is not working with me,
    Please show me how it does...
    thank you...

  4. #4
    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
    53,048

    Re: Transfer values for matched columns

    C
    D
    E
    F
    G
    H
    3
    Name
    HBA1c
    Name HbA1c
    4
    John smith
    7.2
    Fred Suliman
    5
    Leonard David
    5.5
    Sarah longman
    6
    Sandra Golden
    6.7
    Sonia Julian
    7
    Dalia fredman
    9.1
    Leonard David
    5.5
    8
    Sylvia Donald
    5.4
    Sylvia Donald
    5.4
    9
    Farah Abbas
    10
    Lilian Jonthan

    H4=IFERROR(VLOOKUP(G4,$C$4:$D$8,2,0),"")
    copied down

  5. #5
    Forum Contributor
    Join Date
    04-01-2014
    Location
    Middle east
    MS-Off Ver
    MICROSOFT OFFICE 2019
    Posts
    193

    Re: Transfer values for matched columns

    You are Great!!

    thank you

  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
    53,048

    Re: Transfer values for matched columns

    Happy to help and thanks for the feedback

  7. #7
    Forum Contributor
    Join Date
    04-01-2014
    Location
    Middle east
    MS-Off Ver
    MICROSOFT OFFICE 2019
    Posts
    193

    Re: Transfer values for matched columns

    Quote Originally Posted by FDibbins View Post
    Happy to help and thanks for the feedback
    Just one more query,

    what would be the formula if the HBA1c column is "F", ie, it lies 2 column or more away from column "C"

  8. #8
    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
    53,048

    Re: Transfer values for matched columns

    In my formula...
    H4=IFERROR(VLOOKUP(G4,$C$4:$D$8,2,0),"")
    the lookup range is $C$4:$D$8, if you range is wider/greater than that, you just need to adjust to suite

    Then, the bolded 2 is the number of columns across to go, to get the answer...in your sample, it was 2, but if you need to go across 2 more, then that would be 4

+ 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] transfer every matched entrys entire to different-sheets (paste in cells)
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-05-2014, 11:42 AM
  2. [SOLVED] Transfer Every Matched Entry's Entire Row to a Different Sheet
    By RomanGriffen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-04-2014, 09:52 AM
  3. [SOLVED] Matching 2 columns and calling another if matched
    By gamecock21 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-20-2014, 08:54 AM
  4. Replies: 0
    Last Post: 05-17-2014, 07:25 PM
  5. [SOLVED] Match values from two different columns and sort according to the matched values
    By kongfookann in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-20-2013, 09:44 AM
  6. [SOLVED] Summing columns based on matched values
    By Ace_XL in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-13-2013, 11:32 AM
  7. Match columns and calculate if not matched
    By magman1984 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-28-2012, 05:15 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