+ Reply to Thread
Results 1 to 10 of 10

Qty that drop into a date bucket when I input a date with other criteria

Hybrid View

JESSHOR60 Qty that drop into a date... 01-06-2015, 10:27 AM
azumi Re: Qty that drop into a date... 01-07-2015, 12:29 PM
JESSHOR60 Re: Qty that drop into a date... 01-08-2015, 01:54 AM
azumi Re: Qty that drop into a date... 01-10-2015, 01:00 PM
bebo021999 Re: Qty that drop into a date... 01-10-2015, 02:29 PM
JESSHOR60 Re: Qty that drop into a date... 01-11-2015, 09:28 AM
JESSHOR60 Re: Qty that drop into a date... 01-11-2015, 09:31 AM
samba_ravi Re: Qty that drop into a date... 01-10-2015, 03:02 PM
samba_ravi Re: Qty that drop into a date... 01-11-2015, 10:01 AM
bebo021999 Re: Qty that drop into a date... 01-11-2015, 12:54 PM
  1. #1
    Registered User
    Join Date
    12-28-2014
    Location
    Malaysia
    MS-Off Ver
    Professional 2007
    Posts
    21

    Qty that drop into a date bucket when I input a date with other criteria

    Hi,

    This is too hard for me. I do not have any formula.

    If you select a date in a Cell and also input with a start qty in another Cell.
    It will drop into the date bucket that make daily quantity suppose to count.

    Not sure if these could be resolve with Excel Sumif..sum product.. or other matching formulas.

    Thanks

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Qty that drop into a date bucket when I input a date with other criteria

    Ok I spend for hours, but hope this works with formula:

    1.For start date on F2
    =D3
    2.For List Dates after start date and exclude weekend
    =IF(WEEKDAY(F2+1)=7,F2+3,IF(WEEKDAY(F2+1)=1,F2+2,F2+1))
    Put in G2 and copied cross
    3.For allocating Qty
    =IFERROR(IF(COLUMNS($F4:F4)=1,$E4,IF(COLUMNS($F4:F4)=ROUND($C4/$B4,0)+1,MOD($C4-$E4,$B4),INDEX($B4:$B4,ROUNDUP(COLUMNS($A2:A2)/ROUNDDOWN($C4/$B4+1,0),0)))),"")

    or easily pls see the file in attachment

    Regards
    Azumi

  3. #3
    Registered User
    Join Date
    12-28-2014
    Location
    Malaysia
    MS-Off Ver
    Professional 2007
    Posts
    21

    Re: Qty that drop into a date bucket when I input a date with other criteria

    Thanks Azumi, the calculation formula is fantastic. I have add some remarks on the attachment that the drop in qty shall select the date. Really appreciate that you help me to advance on the formula... Many thanks to you
    Last edited by JESSHOR60; 01-08-2015 at 05:53 AM.

  4. #4
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Qty that drop into a date bucket when I input a date with other criteria

    The last formulas is still falling, im have fix it, but i can't make it skip the weekend. Still no idea. Maybe VBA the best idea.

    Regards
    Azumi

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,657

    Re: Qty that drop into a date bucket when I input a date with other criteria

    First, to get the dates automatically:
    In F2
    =MIN(D3,D4)
    G2
    =F2+1
    Drag across.

    Second,
    In F3:
    =IF(F$2<$D3,0,IF(F$2=$D3,$E3,MIN($C3-SUM(E3:$F3),$B3)*(WEEKDAY(F$2,2)<6)))

    If Date is earlier Start date, => 0, if date is start date, start qtty, if later than, take MIN (of daily out put or the balance). If date fall in Weekend (weekday<6) all return 0


    Drag down and across.
    Quang PT

  6. #6
    Registered User
    Join Date
    12-28-2014
    Location
    Malaysia
    MS-Off Ver
    Professional 2007
    Posts
    21

    Re: Qty that drop into a date bucket when I input a date with other criteria

    Hi Bebo,
    If Date is earlier Start date, => 0, if date is start date, start qtty, if later than, take MIN (of daily out put or the balance). If date fall in Weekend (weekday<6) all return 0
    Can it done by =

    All the 0 will be return to Blank. Not value in the Cell. Thanks

  7. #7
    Registered User
    Join Date
    12-28-2014
    Location
    Malaysia
    MS-Off Ver
    Professional 2007
    Posts
    21

    Re: Qty that drop into a date bucket when I input a date with other criteria

    Hi Bebo,
    It great formula.. Can all the 0 return to blank... the cell with Blank value
    Thanks

  8. #8
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Qty that drop into a date bucket when I input a date with other criteria

    f20=IF(F$19=$D20,$E20,IF(OR(F$19<$D20,WEEKDAY(F$19,2)>5),"",IF(SUM(E20:$F20)>=$C20,"",MIN($C20-SUM(E20:$F20),$B20))))
    try this and copy across
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  9. #9
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: Qty that drop into a date bucket when I input a date with other criteria

    Is post No. 6 not working?

  10. #10
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,657

    Re: Qty that drop into a date bucket when I input a date with other criteria

    You can use this:
    =IF(OR(F$2<$D3,WEEKDAY(F$2,2)>=6),"",IF(F$2=$D3,$E3,MIN($C3-SUM(E3:$F3),$B3)))
    return blank instead of 0

+ 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. [SOLVED] Index Match Based on One Date Criteria, Table Contains Beginning Date and End Date
    By jcox1953 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-09-2014, 02:41 PM
  2. [SOLVED] Allocating a given date to a date range bucket: futures contract expiry
    By labogola in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-26-2013, 08:50 AM
  3. Input the cell value when a criteria is met (from matching filename date)
    By jamewoong in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-11-2013, 11:47 AM
  4. [SOLVED] help: i need to input date range & 1 criteria then sumup
    By go14344 in forum Excel General
    Replies: 2
    Last Post: 05-22-2012, 02:34 AM
  5. input date when criteria met?
    By o AXE in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-14-2009, 05:42 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