+ Reply to Thread
Results 1 to 11 of 11

Need to pull multiple reference points into one spread sheet

Hybrid View

  1. #1
    Registered User
    Join Date
    01-06-2012
    Location
    Rochester NY
    MS-Off Ver
    Excel 2007
    Posts
    20

    Need to pull multiple reference points into one spread sheet

    Hello,

    I am working on a project that involves pulling information from one sheet onto a master sheet. I have used an indirect formula before in doing this but I have only used 2 "names" in order to get what I wanted. In the spread sheet I have attached there are two drop downs, one for the month and one for the "project" being worked on. I'm not sure how to name a cell and use the indirect function with two drop downs as opposed to just one.

    Are there other formulas that I could use to achieve the results desired?
    Attached Files Attached Files
    Last edited by oniete1997; 04-11-2012 at 01:51 AM.

  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: Need to pull multiple reference points into one spread sheet

    this will give you what you need, buty you will need to changethe references if your range on the data sheets change..

    =VLOOKUP(A2,INDIRECT(A1&"!A2:e14"),2,FALSE)

    Change the ,2, to 3...4 as needed
    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 Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Need to pull multiple reference points into one spread sheet

    *modified based on FDibbins' formula

    =VLOOKUP($A2,INDIRECT($A$1&"!A2:e14"),COLUMN(B2),FALSE)

  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: Need to pull multiple reference points into one spread sheet

    I just had another look at that...

    If you name your ranges april/may/june etc, then all you need is...

    =VLOOKUP(A2,INDIRECT(A1),2,FALSE)
    Last edited by FDibbins; 04-05-2012 at 06:44 PM.

  5. #5
    Registered User
    Join Date
    01-06-2012
    Location
    Rochester NY
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Need to pull multiple reference points into one spread sheet

    Can you use the the formula on the spread sheet I sent and re-attach? it is much easier to work off a formula that is actually in use. Sorry if this is a pain but I have tried to use this on my spread sheet and i'm not having any luck.

  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: Need to pull multiple reference points into one spread sheet

    Sure, i incorporated JieJenn's col() function into my revised formula. My formula is based on having the data for each month as a named range, if you cant do that (if you dont know how, ask me), you will have to manually enter the ranges into the formula, and revisde its structure to what my 1st replky said (plus Jenns contribution)
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-06-2012
    Location
    Rochester NY
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Need to pull multiple reference points into one spread sheet

    I have attached a new spread sheet that is closer to what I would use. I have tried to get this forumla to work quite a few times. I'm not sure what I'm doing wrong. Can you please try this one and re-attach? Thank you so much!
    Attached Files Attached Files

  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: Need to pull multiple reference points into one spread sheet

    Couldnt see what you were trying to do, but here is what you want. Please note tho, it depends on a named range being created for each month.

    let me know how this works for you, and if you need anything else

  9. #9
    Registered User
    Join Date
    01-06-2012
    Location
    Rochester NY
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Need to pull multiple reference points into one spread sheet

    There is no attachment? and I'm not sure how to create a name for each month, do i highlight the whole sheet and type the name in the corner where i normally name things?

  10. #10
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Need to pull multiple reference points into one spread sheet

    Hello oniete1997,

    In Master lookup B2 you have full month name in drop down. So always use sheet names in full month like January NOT Jan, feb, Mar etc...

    Use the same heading in master C2:X2 just like entered in other sheets

    in Master C2 enter this,

    =MATCH(C2,INDIRECT("'"&$B2&"'!1:1"),0)
    Assume headings are in first row in all sheets

    Then copy across.

    In C4,

    =SUMPRODUCT(SUMIF(INDIRECT("'"&$B$2&"'!A:A"),$B3,INDIRECT("'"&$B$2&"'!"&ADDRESS(1,C$1))))
    Then copy across.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  11. #11
    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: Need to pull multiple reference points into one spread sheet

    oops looks like the attachment didnt take, i will try again....
    Attached Files Attached Files

+ 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