+ Reply to Thread
Results 1 to 4 of 4

Formula to Check Column A for date range and count Column B

  1. #1
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Formula to Check Column A for date range and count Column B

    I have a formula that counts if a date range is present. However I need to change it to count another column only if that date range is present.

    For example a17 a50000 the user will enter the date of the order. and in column B has the order number. I want the formula to count the order numbers for a data range in column A.

    Here is what I have but it is counting the dates in col A not the order numbers in B?

    Thanks for the help.

    Mike

    Please Login or Register  to view this content.
    Last edited by realniceguy5000; 10-28-2009 at 02:50 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to Check Column A for date range and count Column B

    Try

    =Sumproduct(--($A$17:$A$6001>="1/1/2010"+0),--($A$17:$A$6001<="1/31/2010"+0),--Isnumber($B$17:$B$6001))

    or

    =Sumproduct(--($A$17:$A$6001>="1/1/2010"+0),--($A$17:$A$6001<="1/31/2010"+0),--($B$17:$B$6001<>""))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Re: Formula to Check Column A for date range and count Column B

    Quote Originally Posted by NBVC View Post
    Try

    =Sumproduct(--($A$17:$A$6001>="1/1/2010"+0),--($A$17:$A$6001<="1/31/2010"+0),--Isnumber($B$17:$B$6001))

    or

    =Sumproduct(--($A$17:$A$6001>="1/1/2010"+0),--($A$17:$A$6001<="1/31/2010"+0),--($B$17:$B$6001<>""))
    Thanks For the help...

    Both formula's seem to work.

    I would have edited my other post but it was closed before I could change the heading and got another ticket.

    Thanks Again your always a great help!!!!

    Mike

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Formula to Check Column A for date range and count Column B

    You are welcome,

    Pease remember to mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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