Results 1 to 9 of 9

Thread: [RESOLVED] Excel Match

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Location
    N.Ireland
    Posts
    651

    Resolved [RESOLVED] Excel Match

    Hello

    I have 2 spreadsheets.

    Spreadsheet 1, Column "D" lists my unique job numbers. If the job number is found in Spreadsheet 2, column "G", then i need to copy the contents of Column "L" from Spreadsheet 1 over to the corresponding/matched Job number in Sheet 2 and paste the contents from Column "L" Sheet1, into Column "CI" in SHeet 2.

    I'm lost....please help!!

    thanks
    Gilly

  2. #2
    Discovering Life Siddharth Rout's Avatar
    Join Date
    Feb 2005
    Location
    Mumbai, India
    Posts
    12,001

    Re: Excel Match

    you can achieve it with or without code. how do you want to achieve it?
    A good exercise for the Heart is to bend down and help another up...
    Please Mark your Thread "Resolved", if the query is solved


    MyGear:
    ★ CPU ★ Ryzen 5 5800X
    ★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
    ★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
    ★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
    ★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
    ★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
    ★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
    ★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
    ★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
    ★ Keyboard ★ TVS Electronics Gold Keyboard
    ★ Mouse ★ Logitech G502 Hero

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Location
    N.Ireland
    Posts
    651

    Re: Excel Match

    I don't mind. I need to do this on a weekly basis so whatever you think is best - easiest method possible....without code probably would be easier for me!
    Gilly

  4. #4
    Head Hunted anhn's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    3,669

    Re: Excel Match

    It's quite simple with VLOOKUP() formula on sheet, no need VBA code.
    If I understand you correctly:
    In cell "CI2" of Sheet2, enter: =VLOOKUP($G2, Sheet1!$D:$L, 9, 0)
    (replace Sheet1 with your actual sheet name)
    then copy cell CI2 downward.
    If a job number in column G of Sheet2 not found, #N/A will displays.
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • If your question was answered please use Thread Tools to mark your thread [RESOLVED]
    • Don't forget to RATE helpful posts

    • Baby Steps a guided tour
    • IsDigits() and IsNumber() functions • Wichmann-Hill Random() function • >> and << functions for VB • CopyFileByChunk

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Location
    N.Ireland
    Posts
    651

    Re: Excel Match

    amazing!!!

    Exactly what i needed....works brilliant

    Thank you very much for your time.
    Gilly

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2000
    Location
    N.Ireland
    Posts
    651

    Re: Excel Match

    what does the 9,0 at the end of your formula mean?
    Gilly

  7. #7
    Head Hunted anhn's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    3,669

    Re: Excel Match

    =VLOOKUP($G2, Sheet1!$D:$L, 9, 0)
    Quote Originally Posted by gilly
    what does the 9,0 at the end of your formula mean?
    9 : counting number of columns from D to L
    0 (or FALSE) : Exactly match

    Search Help for VLOOKUP function to learn more.
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • If your question was answered please use Thread Tools to mark your thread [RESOLVED]
    • Don't forget to RATE helpful posts

    • Baby Steps a guided tour
    • IsDigits() and IsNumber() functions • Wichmann-Hill Random() function • >> and << functions for VB • CopyFileByChunk

  8. #8
    Head Hunted anhn's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    3,669

    Re: Excel Match

    If you are happy with the solution please mark your thread as resolved.
    • Don't forget to use [CODE]your code here[/CODE] when posting code
    • If your question was answered please use Thread Tools to mark your thread [RESOLVED]
    • Don't forget to RATE helpful posts

    • Baby Steps a guided tour
    • IsDigits() and IsNumber() functions • Wichmann-Hill Random() function • >> and << functions for VB • CopyFileByChunk

  9. #9
    Addicted Member
    Join Date
    Jan 2007
    Location
    England
    Posts
    234

    Re: [RESOLVED] Excel Match

    I tend to use an Index Match combination, will give you the same results as above
    But thought it worth posting anyway

    =INDEX(Sheet2!$D:$L,MATCH($A1,Sheet2!$A:$A,0),2)

    0 in this formula again means exact match
    and 2 returns the 2nd column. i.e. column E

Posting Permissions

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



Click Here to Expand Forum to Full Width