+ Reply to Thread
Results 1 to 2 of 2

Using a formula to calculate a sumproduct between multiple dates, depending on the date

  1. #1
    Registered User
    Join Date
    02-23-2017
    Location
    Oregon
    MS-Off Ver
    2013, and google sheets
    Posts
    1

    Smile Using a formula to calculate a sumproduct between multiple dates, depending on the date

    Good afternoon!

    We have a spreadsheet that is causing some headaches, because the current method of the formulas as more or less done manually just referencing cells, and needing to be adjusted if there is a different date. What I would like to try and do (and I tried with an IF(OR) statement) is have the formula go off of the date of our product (Table A, ex row 31, 2/13/2017) and have the total price calculate correctly with the corresponding prices seen in table B, these tables are on different sheets (I do know the formatting needed)

    The Formula that i would like to calculate is in Table A Column B, to calculate that if the date in Table A Column C is >= 11/30/16 and <1/7/17 then I want the Total price to calculate out =TableA!F8*TableB!B4+ TableA!G8*TableB!C4 +TableA!H8*TableB!D4. If it did not fall within that date range, then I would want it to push to the next date range >=TableB!A5 < TableB!A6 and so forth until all of them have been used to reference to get usable values. Would a nested IF statement work? Would I have to use a Vlookup? I am at a loss on how this could work to my favor and hoping that there might be a solution to assist with this, esp as this database grows a lot. Let me know if anything does not make sense or if I need to clarify, Thanks!


    Table A

    table a.PNG


    Table B

    table b.PNG
    Last edited by kevinskir; 02-23-2017 at 04:54 PM.

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Using a formula to calculate a sumproduct between multiple dates, depending on the dat

    it'd better INDEX(table,MATCH(date),MATCH(product, if there is a value))

+ 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. Calculate between two dates, but one date cell has a formula in?
    By Carolbell44 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-29-2016, 11:28 AM
  2. Replies: 4
    Last Post: 04-30-2015, 06:23 AM
  3. Formula to calculate multiple dates to return two results
    By Loz44 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-24-2014, 12:44 AM
  4. [SOLVED] Date format problem using a formula in VBA to calculate difference between times and dates
    By alicebrewer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-05-2012, 03:13 AM
  5. Replies: 5
    Last Post: 08-02-2011, 07:11 AM
  6. Replies: 2
    Last Post: 10-07-2010, 09:27 PM
  7. Replies: 3
    Last Post: 05-03-2006, 05:15 PM

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