+ Reply to Thread
Results 1 to 5 of 5

Using a cell with a date as part of a new forumal?

  1. #1
    Registered User
    Join Date
    01-08-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Using a cell with a date as part of a new forumal?

    Hi Everyone,

    I am having problems with my spreadsheet and was wondering if the following is possible (I know working with dates in excel can be tricky).


    I have some data in another spread sheet that this sheet will use and basically I want to count the records using a certain criteria.

    This is the formula I am using for one of my criteria

    =COUNTIFS('Import Sheet'!E:E,"Cancelled",'Import Sheet'!D:D,">=09/07/2012",'Import Sheet'!D:D,"<=08/07/2012")

    I have to use this formual and variations of this formula throught the sheet and changing the date is very time consuming.

    Is it possible to have the date in another cell say B6 (would have the date 09/07/2012) and C6 (would have the date 09/07/2012) and use these cells B6 and C6 as part of the formula?

    Everything I have tried so far hasn't worked. Does anyone know anyway this can be done?

    Thanks in advance
    Trish

  2. #2
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Using a cell with a date as part of a new forumal?

    Just replace your date in side the quotes with this

    ">="&B6

    "<="&C6
    Last edited by Teethless mama; 01-08-2013 at 06:45 PM.

  3. #3
    Registered User
    Join Date
    01-08-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Using a cell with a date as part of a new forumal?

    Thanks for the quick reponse I have changed the formual to the following

    =COUNTIFS('Import Sheet'!D:D,"">="&B6",'Import Sheet'!D:D,"<="&"C6")

    However the answer is now "0" and it should be "4". have i got all the " etc in the correct place?

    Trish

    PS Love your screen name, thats what I keep telling my boys !

  4. #4
    Registered User
    Join Date
    01-08-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Using a cell with a date as part of a new forumal?

    Thanks got it now, my mistake putting in too many ".

    You're awsome

    Trish

  5. #5
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: Using a cell with a date as part of a new forumal?

    You're Welcome!

+ 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