+ Reply to Thread
Results 1 to 13 of 13

Add IF to ADDIF to count from certain date

  1. #1
    Registered User
    Join Date
    07-11-2012
    Location
    Sherbrooke, Qc, Can
    MS-Off Ver
    Excel 2010
    Posts
    19

    Add IF to ADDIF to count from certain date

    Hi everybody,

    Here's my problem: I have a sheet with all the information about what a person is doing that everybody fill themself. They have a sheet, in the first colomn they put the thing they do from a selected list, in the 2nd row they type what they do, and in the 3rd row they type how many times they work on it. I am currently counting everything they do and how many times they put in it and doing graph with the info.
    I currently use the following formula:
    =if(Params!B5="";"";add.if(Sommaire!C:C;[@Tāches];Sommaire!E:E))

    This formulas Work. It verify if the parameter exist and then proceed to count everything in the colomn C and use the number of hours in column E (Both in another sheet called Sommaire).


    Now I want to basicly do the same thing but only for the last 2 weeks. I have the date in colomn B but I can't make it work. Like you see in the following, I'm trying to use the IF command to make it work.
    =if(Params!B5="";"";if(Sommaire!B5:B300>=TODAY()-14;add.if(Sommaire!C:C;[@Tāches];Sommaire!E5:E300))) (Doesn't work)

    I tested the TODAY()-15 and it show the right thing so there is no problem there. I can't make it so that he only count the info in the rows that have the correct date...

    If it can help I can provide a "Pseudo-Copy" of the file. I'll remove everything that isnt related to the case and post it.
    Any help is welcomed.
    Thx for the help.
    Last edited by Yokoblue; 07-12-2012 at 12:22 PM. Reason: change title

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Complex Formula

    Try array entering it, that is after entering the formula hit Ctrl-Shift-Enter, not just Enter.

  3. #3
    Registered User
    Join Date
    07-11-2012
    Location
    Sherbrooke, Qc, Can
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Complex Formula

    Doesnt work. Change the result from everything counted to "False"

  4. #4
    Registered User
    Join Date
    07-11-2012
    Location
    Sherbrooke, Qc, Can
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Complex Formula

    Here's a copy of the document with only the necessary info in it.

    Problem is that it's in a french office 2010 format... I don't know if it's gonna be compatible with the other versions.
    Complex Formula.xlsx

  5. #5
    Registered User
    Join Date
    07-11-2012
    Location
    Sherbrooke, Qc, Can
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Complex Formula

    Anybody else...

    Could the solution come from VBA... ? Doing something like A IF in another one to add only if the requirement are met ?

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Complex Formula

    Hi Yokoblue,

    Maybe the attached WorkBook is what you want.

    Please also see the "Please consider" note at the bottom of this post

    Hope that helps.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Complex Formula

    Yokoblue, welcome to the forum. Thanks for amending your thread title.
    Last edited by Cutter; 07-12-2012 at 12:36 PM. Reason: Removed request for title change

  8. #8
    Registered User
    Join Date
    07-11-2012
    Location
    Sherbrooke, Qc, Can
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Complex Formula

    Quote Originally Posted by Winon View Post
    Hi Yokoblue,

    Maybe the attached WorkBook is what you want.

    Please also see the "Please consider" note at the bottom of this post

    Hope that helps.

    Thx for the help but it didn't work. The information is all messup up. On the left I have the total of everything and lets say for exemple: Documentation = 31 but in your version Documentation add to 34... Which is impossible since there is only 31 hours worked doing Doc.

    The problem is that I need to associate the Addif function with the IF to look for the date. The Addif function add row by row until it reach the end of the row. I want it to skip the row where the date is higher than TODAY()-14 (which is 2 weeks old basically)

    I'm really grateful for your help but it seems we're still stuck

  9. #9
    Registered User
    Join Date
    07-11-2012
    Location
    Sherbrooke, Qc, Can
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Add IF to ADDIF to count from certain date

    Right now everything work except one thing...

    =IF(Params!B5="";"";IF(Sommaire!B100>=TODAY()-14;ADD.IF(Sommaire!C:C;[@Tāches];Sommaire!E:E);ADD.IF(Sommaire!C:C;[@Tāches];Sommaire!E:E)))

    It doesnt count with the row B in mind it just count everything if I put a date higher than 2 weeks ago and doesn't count if not.
    In programming, it seems easy but in excel I don't know why I cant figure it out.

    Basically B100 here is a date 2 days ago. I need it to be the whole row checked everytime...
    Anybody can help ?

    You can look at the files in the thread if you want to try at helping me

  10. #10
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Add IF to ADDIF to count from certain date

    Hi Yokoblue,

    I must admit that I am a bit confused.

    Place this formula in Cell L3, and see if that helps.

    Please Login or Register  to view this content.
    Enter it with Ctrl+Shift+Enter.

    Else I suggest you you show me what result you desire in Cell L3. I am not familiar with foreign languages, let alone English! LOL


    But I really want to try and help you.

  11. #11
    Registered User
    Join Date
    07-11-2012
    Location
    Sherbrooke, Qc, Can
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Add IF to ADDIF to count from certain date

    Thx a lot for your help, ill try it asap.

    Sry... It doesn't work...

    The result in L3 is this : Count the number of time "Autre" appear in the column B, every time it appears, I want it to take the information in the cell E and add it.

    So basically, Cell L3 should show 9 as a result. L4 should show 13.5 (As of today)

    (if we look tomorrow, every information taken from the 07-29th wont be there since its past 2 weeks so L3=5 L4=13 (Since there is 4 hours worked doing "Autre" the 07-29th and .5 doing "Documentation")
    Last edited by Yokoblue; 07-13-2012 at 08:56 AM.

  12. #12
    Registered User
    Join Date
    07-11-2012
    Location
    Sherbrooke, Qc, Can
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Add IF to ADDIF to count from certain date

    If you know a little programming it would look something like this:


    For Y=5 (we want to start at row 5)
    X=0
    IF (Y)Column B > 2012-06-29 (2 weeks)
    IF (Y)Column C = "Autre"
    X+(Y)Column E
    ELSE
    X+0
    ELSE
    X+0


    This is exactly what I want but in Excel...
    Could we do it in VBA or something if it doesn't work with pure excel formulas ?

  13. #13
    Registered User
    Join Date
    07-11-2012
    Location
    Sherbrooke, Qc, Can
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Add IF to ADDIF to count from certain date

    Ok change of plans.

    Seems like my boss will be okay with just taking the information we put in the filters.
    Is that possible ?

    Counting everything that is showed on screen if I put filters... ?

+ 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