+ Reply to Thread
Results 1 to 7 of 7

Count if with variable

  1. #1
    Registered User
    Join Date
    11-13-2012
    Location
    WA
    MS-Off Ver
    Excel 2010
    Posts
    42

    Count if with variable

    Hey guys you all have been very helpful all these times now I figured I would try to stump someone. Here is my problem formula

    If Cell A1 equals todays date

    And

    Cell E2 Equals the date a case was assigned or opened.

    How do I get cell F2 to calculate the total days a case has been open and have it show the word days after the number? Example: 42 days

    (Not so fast sparky)

    however here is the hitch

    If cell G2 or H2 has a data in the cell then Cell F2 should show the word Closed.

    Is this possible?

    Thank you in advance.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,983

    Re: Count if with variable

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    11-13-2012
    Location
    WA
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Count if with variable

    This works the only problem I am seeing is that it posts a negative day format so instead of it showing 42 days it is showing -42 days. How do I fix that?

  4. #4
    Registered User
    Join Date
    11-13-2012
    Location
    WA
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Count if with variable

    Scratch last I figured it out just needed to switch the last calculation around.
    Please Login or Register  to view this content.
    Thank you for the help. You guys really are the best.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,983

    Re: Count if with variable

    You're welcome.

  6. #6
    Registered User
    Join Date
    11-13-2012
    Location
    WA
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Count if with variable

    Ok so one variable I'd like to try and see if you can help me with the solution on it.

    Same formula as you gave me but with a slight twist.

    Cell O7 is the date the case was closed but Cell P7 is the date the case was pulled aka I didnt close it since it was pulled from me and no longer an active case.

    My question is what tweek needs to be made to the above mentioned formula to show the result of Closed vs Pulled.

    I'd like to have the cell show a result of the days open if no data is in cell O7 or P7 but if there is a date in O7 have it show CLOSED and if there is a date in P7 have it show INACTIVE.

    What would be the best formula?

    Currently this is the formula being used.

    Please Login or Register  to view this content.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,983

    Re: Count if with variable

    The OP is over a month old and solved. You should start a new thread and post a link back to this thread.

+ 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. count of WORKDAYS with variable
    By drcline87 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-30-2014, 03:21 AM
  2. Find Next Variable And Then Count
    By albertcri in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-06-2013, 02:09 AM
  3. Count with variable cells
    By Prymic in forum Excel General
    Replies: 2
    Last Post: 04-29-2012, 06:27 AM
  4. Multi-variable count?
    By klanch in forum Excel General
    Replies: 2
    Last Post: 08-09-2010, 03:40 PM
  5. 3 Variable Unique count
    By maxthebear in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-21-2009, 04:33 PM
  6. [SOLVED] Using COUNT value as variable
    By Naterator in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-13-2006, 10:25 PM
  7. count how many of any variable are in a worksheet?
    By jifop in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-12-2005, 12:30 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