+ Reply to Thread
Results 1 to 4 of 4

Inventory Spreadsheet, look up date and qty and sum (attachment)

  1. #1
    Registered User
    Join Date
    12-17-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    62

    Inventory Spreadsheet, look up date and qty and sum (attachment)

    I'm trying to populate a Raw Material inventory spreadsheet by looking up product code and the date.

    Have an issue with the formula currently in place. It's not working for future dates.. and returning either 0 or #ref. (I don't want to show #N/A)

    =IF(ISNA(INDEX('RM OnHand'!$E$2:$E$1048576,MATCH($D17,'RM OnHand'!$C$2:$C$1048576,0),MATCH(F$8,'RM OnHand'!$D$2:$D$1048576,0))),0,INDEX('RM OnHand'!$E$2:$E$1048576,MATCH($D17,'RM OnHand'!$C$2:$C$1048576,0),MATCH(F$8,'RM OnHand'!$D$2:$D$1048576,0)))
    Last edited by OilAndGasMan1984; 02-27-2017 at 08:14 PM.

  2. #2
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Two-dimension lookup formula (attachment)

    Hi -

    The example sheet you provided only has dates on February 2, 2017. So, when you are searching for Today() in Cell C3, you won't get any results. Likewise, since the only dates in the RM OnHand list are 2/2/17, future dates won't return anything either.

    If I change the date in Cell C3 to 2/2/17, then I get a result of 4000.66 in Cell F18. Is that what you're looking for?

    INDEX/MATCH will only bring the first instance back from a list. So if you have multiple instances of say R-ADB-VA0-000-00 on the same date, you will only get the first one of those back. Your formula won't accumulate the total. Maybe that's OK. I don't know.

    As an aside - Instead of using IF(ISNA(formula),0,formula) use IFERROR(formula,0). It's a little simpler and easier to debug since you don't have the same formula in there twice.

    Hope this helps.
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  3. #3
    Registered User
    Join Date
    12-17-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Two-dimension lookup formula (attachment)

    Thanks,

    Yes- it does help. Thank you.

    I've begun changing the If(isna formulas to Iferror..

    The real hard part is the Backlog... I can't seem to write the correct formula for cell F20. I've attached a fresh file. Would you mind advising me please?

    Thank you!
    Attached Files Attached Files
    Last edited by OilAndGasMan1984; 02-27-2017 at 08:16 PM.

  4. #4
    Registered User
    Join Date
    12-17-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2010
    Posts
    62

    Index and 2 Match Criteria (must meet both)

    I'm trying to get Cell Q385 to give me 6,647... Is my formula a bust?

    =IFERROR(INDEX('RM Backlog'!$G$2:$G$1048576,MATCH($D382&Q$8,'RM Backlog'!$F$2:$F$1048576&'RM Backlog'!$E$2:$E$1048576,0)),0)
    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)

Similar Threads

  1. Shipping Dimension Formula From List of Preset Dimensions
    By Casthenative in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-05-2016, 12:51 PM
  2. 2 dimension lookup not working
    By batchjb69 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-11-2014, 04:35 PM
  3. Lookup formula that returns unique multiple search results WITH ATTACHMENT
    By wit2001large in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-23-2013, 06:02 AM
  4. Replies: 2
    Last Post: 06-18-2012, 07:59 AM
  5. [SOLVED] 2 dimension lookup
    By kl99ny in forum Excel General
    Replies: 7
    Last Post: 06-12-2012, 01:40 PM
  6. [SOLVED] Sub to write another result dimension into comments over formula c
    By Max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-30-2006, 09:50 PM
  7. 3 dimension lookup problem
    By barkiny in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-14-2006, 11:05 AM

Tags for this Thread

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