+ Reply to Thread
Results 1 to 7 of 7

#REF! Error in INDEX & MATCH Formula!

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    01-07-2012
    Location
    Bangalore
    MS-Off Ver
    Office 365
    Posts
    368

    #REF! Error in INDEX & MATCH Formula!

    Hi Friends,

    In the attached file, From A10:A20, I have a list of different items. From B10:B20 each item group is been mentioned and from C10:P20 day wise inventory qty is been mentioned.

    Above said details, I have to do week wise summary in B2:H5 and I have written a formula which is giving either wrong result (as shown in C3) or #REF! Error!

    Need your help to solve this issue…

    Thanks & Regards,
    Rajeshkumar R





    Attached Files Attached Files
    Last edited by Rajeshkumar R; 06-09-2012 at 09:01 AM. Reason: Query is Clarified

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: #REF! Error in INDEX & MATCH Formula!

    the index has to be a range.
    try in c3

    =SUMPRODUCT(--(OFFSET($B$11,0,MATCH(C$2,$C$10:$P$10,0),10)>=0),--($B$11:$B$20=$B3),OFFSET($B$11,0,MATCH(C$2,$C$10:$P$10,0),10))
    this will give totals for each on specified date >=0
    Attached Files Attached Files
    Last edited by martindwilson; 05-27-2012 at 10:14 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    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: #REF! Error in INDEX & MATCH Formula!

    in your summary table, use this formula, copied across and down...

    =SUMPRODUCT(($C$11:$P$20)*($C$11:$P$20>0)*($B$11:$B$20=$B3)*($C$10:$P$10>=C$2)*($C$10:$P$10<D$2))
    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

  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: #REF! Error in INDEX & MATCH Formula!

    @ Martin, i was just comparing your formula to mine and curious about the different approaches. you use offset, and --, could you explain to me why you took this approach please? (always looking to learn new ways)

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: #REF! Error in INDEX & MATCH Formula!

    its just the first thing that came to mind! plus we get entirely different results!
    i'm just calculating the column that matches the dates in c2:h2

  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: #REF! Error in INDEX & MATCH Formula!

    i checked your results, and if you look at the 1st set of values for X May 21-May 27, the total is 450 (100+150+200). your total comes up to 100?

    oh wait, i see where the difference comes in. your formula mathes the dates, mine adds the dates for the week from may21 to may 72

  7. #7
    Forum Contributor
    Join Date
    01-07-2012
    Location
    Bangalore
    MS-Off Ver
    Office 365
    Posts
    368

    Re: #REF! Error in INDEX & MATCH Formula!

    Query is been solved, please find the attached file.

    Thanks & Regards,
    Rajeshkumar R
    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