+ Reply to Thread
Results 1 to 13 of 13

Report Table: VLookUp, Match, Index Formula

  1. #1
    Registered User
    Join Date
    08-11-2008
    Location
    rotherham
    Posts
    20

    Report Table: VLookUp, Match, Index Formula

    Hi,


    Please see attached spreadsheet for confirmation.

    I want to produce a table which will form the basis of a report.
    There are 3 Schemes (A,B,C)

    As the data is inputted in column A and B I would like this to be reported in the Scheme Report Table.

    Therefore for each SETTING I will get a COUNT of each Scheme for each SETTING.

    I have filled in the report table with the information that the formula would show.


    I believe this is done by a combination of formulas INDEX, MATCH and VLOOKUP.


    Thanks for your help….
    Attached Files Attached Files
    Last edited by NBVC; 03-16-2010 at 10:56 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Report Table: VLookUp, Match, Index Formula

    In F4, try:

    =SUMPRODUCT(--($A$2:$A$8=$E4),--($B$2:$B$8=F$3))

    copied down and over...

    adjust ranges to suit.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    08-11-2008
    Location
    rotherham
    Posts
    20

    Re: Report Table: VLookUp, Match, Index Formula

    This is nearly right but returns me with a value of 0

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Report Table: VLookUp, Match, Index Formula

    O means no exact matching combination? Is that the case? If not, check that your inputs don't have extra spacing or incorrect spelling...

    To hide the 0's, custom format the table as 0;-0;;@

    In fact, as I look back at your table, some of the items in column E, like Acorn and Appletree have trailing spaces.. get rid of them... and presto!
    Last edited by NBVC; 03-16-2010 at 08:56 AM.

  5. #5
    Registered User
    Join Date
    08-11-2008
    Location
    rotherham
    Posts
    20

    Re: Report Table: VLookUp, Match, Index Formula

    This still seems to return the Value 0. The spelling is the same.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Report Table: VLookUp, Match, Index Formula

    Go to E4 and hit F2.. you will see there is an extra space after Acorn... check the rest too.

  7. #7
    Registered User
    Join Date
    08-11-2008
    Location
    rotherham
    Posts
    20

    Re: Report Table: VLookUp, Match, Index Formula

    Sorry to be a pain, this is done and still get a value of 0

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Report Table: VLookUp, Match, Index Formula

    See attached.

    Which one is incorrect?
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    08-11-2008
    Location
    rotherham
    Posts
    20

    Re: Report Table: VLookUp, Match, Index Formula

    For some reason I must have coppied the formula wrong!

    Can this formula work on seperate work sheets?


    Thank you very much, sorry for my error

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Report Table: VLookUp, Match, Index Formula

    Yes, it can... just preceed the ranges with the sheetname they are in enclosing the name is single apostrophe's and adding exclamation point before referenced range...

    e.g.

    =SUMPRODUCT(--('Reference Sheet'!$A$2:$A$8=$E4),--('Reference Sheet'!$B$2:$B$8=F$3))

  11. #11
    Registered User
    Join Date
    08-11-2008
    Location
    rotherham
    Posts
    20

    Re: Report Table: VLookUp, Match, Index Formula

    Could you provide me with an example?

    I can't seem to get it to work accross multiple sheets

  12. #12
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Report Table: VLookUp, Match, Index Formula

    See attached, Sheet 2 refers to Sheet 1 for data...
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    08-11-2008
    Location
    rotherham
    Posts
    20

    Re: Report Table: VLookUp, Match, Index Formula

    Thanks works fine! You've been a great help.

    Very nice formula.

+ 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