+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    12-03-2008
    Location
    The Swamp
    MS-Off Ver
    2000 Pro
    Posts
    75

    Multiple nesting lookup, index, match

    I attached a sample spreadsheet that I am working on.

    Simply put, the NBFI tab will be input only. I will add values for each month that total for the Quarter. On the report tab, I want to use the drop down boxes to pick a business (in this example A & B) and a Quarter End value, which I have done with validation boxes. I then want excel to find the corresponding info and populate the cells.

    I am thinking that it will be an array formula using match and hlookup, but need some help putting it all together. I will have a total of 5 workbooks for different branches and each branch will have a different number of businesses.

    Thanks in advance,

    Jeff
    Attached Files Attached Files
    Last edited by Georgia Golfer; 03-15-2010 at 03:56 PM.

  2. #2
    Forum Guru Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007
    Posts
    3,441

    Re: Need help with multiple nesting lookup, index, match

    With a slight change in sheet structure you could easily use a Pivot Table to generate flexible, dynamic reports.

    See if the attached is feasible. Otherwise, your layout is quite problematic for a formula solution, but may not be out of the question.
    Attached Files Attached Files
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    12-03-2008
    Location
    The Swamp
    MS-Off Ver
    2000 Pro
    Posts
    75

    Re: Need help with multiple nesting lookup, index, match

    Hey Palmetto, thanks for the suggestion. I always seem to overcomplicate my sheets.

    I can change the sheets easy enough, I think, but there will only be 1 entry per business each month. The date doesn't matter, right? I can just use the last day of each month for each business.

    Thanks a lot for the suggestion, I'll be sure to mark solved if it works out to be feasible.

  4. #4
    Forum Guru Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007
    Posts
    3,441

    Re: Need help with multiple nesting lookup, index, match

    I think, but there will only be 1 entry per business each month. The date doesn't matter, right? I can just use the last day of each month for each business.
    The date doesn't matter - Excel knows which quarter dates fall into. So just enter them as needed.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  5. #5
    Registered User
    Join Date
    12-03-2008
    Location
    The Swamp
    MS-Off Ver
    2000 Pro
    Posts
    75

    Re: Need help with multiple nesting lookup, index, match

    I'm using Vista, is there not a wizard for pivot tables? I've never used them before & am having trouble trying to recreate what you did.

  6. #6
    Registered User
    Join Date
    12-03-2008
    Location
    The Swamp
    MS-Off Ver
    2000 Pro
    Posts
    75

    Re: Need help with multiple nesting lookup, index, match

    I am having no luck with pivot tables. I've read through the tips on pivot tables here and they may have well been in greek....

    Please help.

  7. #7
    Forum Guru Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007
    Posts
    3,441

    Re: Need help with multiple nesting lookup, index, match

    Assuming you are using the revised structure I suggested . . .

    Working from memory here as I don't have Excel 2007 on this PC . . .

    Select any cell in the data table, then on the Ribbon Menu, click the Insert Table and choose Pivot Table.

    Excel should automatically recognize the entire table of data and select it as the source for the PT. From here you should be able to build the Pivot Table by dragging the Business Name to the Page Field. Drag the date to the row field and all of the fields you want to sum to the data pane in the dialog.

    After the Pivot Table is created, click one into the row field, then right-click and choose the "Group By" option, then choose quarters as the grouping option.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  8. #8
    Cheeky Forum Moderator Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2003, 2007, 2010
    Posts
    3,605

    Re: Multiple nesting lookup, index, match

    If you really want a formula solution...see the workbook I attached.

    Basically, I put reference text to the right of your report fields and created formulas that use those fields to locate the values you want calculated.

    Using your posted workbook, here's the set up for the Items Cashed field:
    C4: ...set to: 3rd Qtr '09
    C6: ...set to: A
    F8: Total Cashed

    This formula finds and reports that value:

    Code:
    C8: =VLOOKUP($C$4,INDEX(NBFI!$2:$2,MATCH(Reports!$C$6,NBFI!$2:$2,0)):NBFI!$Z$1000,
    MATCH($F8,NBFI!$2:$2,0)-1,0)
    In the attached workbook, the other fields are populated.

    Is that something you can work with?
    Attached Files Attached Files
    Regards,

    Ron
    Microsoft MVP - Excel
    (Oct 2006 - Sep 2012)

    Click here to see the Forum Rules

  9. #9
    Registered User
    Join Date
    12-03-2008
    Location
    The Swamp
    MS-Off Ver
    2000 Pro
    Posts
    75

    Re: Multiple nesting lookup, index, match

    That's perfect!

  10. #10
    Forum Guru Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007
    Posts
    3,441

    Re: Multiple nesting lookup, index, match

    As I pointed out earlier a formula solution is possible and Ron Coderre's solution works for your current worksheet. However, assuming more businesses will be added, you now have the issue of maintaining the formula and adjusting for new ranges, etc. In addition, you have needless redundancy in the structure and should seek to simplify.

    IMO, you are much better served by revising your sheet per my suggestions and using a pivot table - it more easily accommodates growing data and has a lot of flexibility in obtaining different views/analyses of the data .

    If you do so, you could convert the raw data into a Table (seeing you are using Excel 2007 - see the Help on Tables) and use the Table as the source for the Pivot Table. This makes the source "dynamic" and the Pivot Table can be refreshed to "see" changes in data.


    Edit: never mind the comment about Table. I just took another look at your profile and it doesn't show Excel 2007.
    Last edited by Palmetto; 03-15-2010 at 04:34 PM. Reason: add comment to ignore suggestion to use Tables
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  11. #11
    Registered User
    Join Date
    09-24-2009
    Location
    Mississippi
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Multiple nesting lookup, index, match

    I need help to trim a cell and return the last 5 characters.

  12. #12
    Forum Guru Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007
    Posts
    3,441

    Re: Multiple nesting lookup, index, match

    JASON38967,

    Your thread does not comply with the Forum Rules. Do not post a question in a thread started by someone else. Please start your own thread.

    Rule #2
    Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.
    Please be sure to post in the appropriate forum as there are several to choose from. Looks like your question should go in the General or Functions Forum.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this 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.2.0