+ Reply to Thread
Results 1 to 6 of 6

Formula/Macro to reference from other Worksheet

Hybrid View

  1. #1
    Registered User
    Join Date
    10-08-2009
    Location
    Calgary Canada
    MS-Off Ver
    Excel 2010
    Posts
    20

    Formula/Macro to reference from other Worksheet

    I'm pretty sure this is the right section, if not feel free to yell at me and i'll post in the appropriate one.

    Maybe it's not as complicated as i'm thinking, but i'm trying to figure out a formula (or macro) that will let me basically fill in a blank from a (nearly) irrelivant second worksheet. The only similarity the two will have is a PO number, or in my picture diagram, it's a letter. The worksheet that i'm trying to fill in the blank from has maybe 1500 entries, the worksheet i am referencing to has roughly 11,000, so sorting it would make no difference and the columns would be very inconsistant with eachother, but the rows will be similar.

    I want to start a formula in Sheet one, that looks at the Letter in that same row, finds that Letter in Sheet two, and gets information from the same row but a few columns over. I might be explaining this poorly, so here's a picture of what i'm referring to. I'm trying to fill in F6 in Sheet 1 with information from F2 in Sheet 2. Would anyone be able to assist please? Is this even possible or would it need to be done through a macro? (If so what would you recommend)

    Thank you very much

    http://img8.imageshack.us/img8/4512/example2l.jpg
    Last edited by Rizzu; 10-13-2009 at 08:53 PM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Formula/Macro to reference from other Worksheet

    OK,

    in sheet 1 you need this formula

    =VLOOKUP($A6,'Sheet2'!$A$2:$F$100,6,FALSE)

    this will work for 100 rows of data in sheet 2. Adjust the $F$100 part in above formula to suit your needs. You can copy and paste the formulas into the other cells of the column.

    cheers

  3. #3
    Registered User
    Join Date
    10-08-2009
    Location
    Calgary Canada
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Formula/Macro to reference from other Worksheet

    Ahh i'm afraid that's not quite it. Almost though.

    It's not going to lineup perfectly like that in the second spreadsheet, so it won't be in a set position. Is it possible to make it so the formula searches for the matching letter in the second sheet? Pretty much exactly what my picture is explaining

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Formula/Macro to reference from other Worksheet

    The formula

    =VLOOKUP($A6,'Sheet2'!$A$2:$F$100,6,FALSE)

    takes the value in A6 on sheet 1 and searches that value in the first column of the range A2:F100 on sheet 2. If the lookup value is found, it will return the value of the sixth column of the row where the value was found.

    What exactly does not line up? can you post an example?

  5. #5
    Registered User
    Join Date
    10-08-2009
    Location
    Calgary Canada
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Formula/Macro to reference from other Worksheet

    oh damn my mistake, it works perfectly!! I was reading it incorrectly, thank you very much!

  6. #6
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Formula/Macro to reference from other Worksheet

    Glad to help. Can you please take the time to mark the thread as solved?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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