+ Reply to Thread
Results 1 to 9 of 9

date range and COUNTIFS

Hybrid View

momus12 date range and COUNTIFS 12-28-2008, 03:53 PM
shg The arrays have to be the... 12-28-2008, 03:58 PM
momus12 People will be filling out... 12-28-2008, 04:24 PM
Rahul Nagar Dear momus12, Can you... 12-28-2008, 04:25 PM
momus12 Hi Rahul, I need to... 12-28-2008, 04:35 PM
shg Still not sure what you're... 12-28-2008, 04:39 PM
Rahul Nagar if you want the percentage of... 12-28-2008, 04:50 PM
  1. #1
    Registered User
    Join Date
    06-30-2008
    Location
    Santa Cruz CA
    Posts
    7

    date range and COUNTIFS

    Hi,

    I need to look at a series of data once per week and calculate the results. I'm trying to use COUNTIFS to get a result based on both the date I'm doing the analysis for and for the response.

    I've attached a sheet that shows a sample of what I'm trying to do. Cell B1 contains the date range I'm using, and cell B18 shows the formula I'm having trouble with. I suspect it's because I'm trying to treat a date like text, but I'm not sure. Any help would be greatly appreciated.

    Thanks,
    Michael
    Attached Files Attached Files
    Last edited by momus12; 12-28-2008 at 05:02 PM. Reason: Changed to solved.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    The arrays have to be the same size in COUNTIFS, and you have to coerce the string to a number.

    What are you trying to do?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-30-2008
    Location
    Santa Cruz CA
    Posts
    7
    People will be filling out Yes or No for items 1 through 8, and I want to automatically determine the percentages of Yes values for the columns containing items 1 through 8. It needs to record this specific to the dates in the range so I can see the variance from week to week.

    If I am using arrays, I'm unaware of it, but my experience with Excel is rudimentary for now. When you say corce the string to a number, are you referring to the date string?

  4. #4
    Valued Forum Contributor Rahul Nagar's Avatar
    Join Date
    09-18-2008
    Location
    nasik
    MS-Off Ver
    Excel 2003
    Posts
    465
    Dear momus12,

    Can you please tel me what do you want to do, so i can help you

    thanks
    __________________
    Regards
    Rahul Nagar
    Founder of www.myshortcutkeys.com.


    If you get the answer of your questions then please click EDIT in your original post then click on GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody! ....
    Also
    If you are satisfied by any members response to your problem please consider using the scales icon top right of thier post to show your appreciation.

  5. #5
    Registered User
    Join Date
    06-30-2008
    Location
    Santa Cruz CA
    Posts
    7
    Hi Rahul,

    I need to calculate the percentage of responses and record them by date. If you look at cell B18 on the spreadsheet I attached, it shows what specifically I'm trying to calculate. (I hope anyway.)

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Still not sure what you're trying to do, but maybe this. In B18 and copy down and across,

    =IF($B$1 <> $A18, "", COUNTIF(A$4:A$9, "Yes") / COUNTA(A4:A9) )

  7. #7
    Valued Forum Contributor Rahul Nagar's Avatar
    Join Date
    09-18-2008
    Location
    nasik
    MS-Off Ver
    Excel 2003
    Posts
    465
    if you want the percentage of responses The following formula is perfect

    =IF($B$1 <> $A18, "", COUNTIF(A$4:A$9, "Yes") / COUNTA(A4:A9)*100 )

    I hope this work for you.

    Thanks

  8. #8
    Registered User
    Join Date
    06-30-2008
    Location
    Santa Cruz CA
    Posts
    7
    Wow! That's exactly what I was trying to do. I understand that $B$1 <> $A18, states that if B1 is not less than or greater than A18 as a condition, but what does "" represent in the formula?

    Thanks so much to both of you!

+ 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