+ Reply to Thread
Results 1 to 19 of 19

Counting Blank Cells

  1. #1
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Racine, wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    225

    Counting Blank Cells

    hi again guys, thanks for all you previous help ,

    I have another problem yet to solve, I have a sample book attached of what I'm trying to accomplish.
    john has a bunch of places to collect money at from a video game I put in a location, but he has
    not collected 1 of them the last 2 days, on the sheet1 its C500, on sheet2 is the date, and his name on top,
    below is the code of the place and the name of the location, I'm using the word "Place" as the location name
    for now, if you look at sheet2, you will see a number in red 3 after the location, which means it will be 3 weeks
    since that location has been collected. is there a way that when a place hasn't been collected in 2 or more weeks
    that a red number will be put in the same cell as the place as shown on sheet 2?

    Thanks
    Keith
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Counting Blank Cells

    Was this workbook created with Excel for Mac.

    I ask since the dates are coming through as 2021 rather than as I suspect they should be 2017?
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Counting Blank Cells

    This formula will return the Location and the count of blank cells.
    To colour the number different to the rest of the text would need a macro.

    B2 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Racine, wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    225

    Re: Counting Blank Cells

    Just used a future date, it really doesn't mean anything right now

    Thanks
    Keith

  5. #5
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Racine, wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    225

    Re: Counting Blank Cells

    Hi Richard

    where would I paste that formula? sorry I'm still new to excel

    Thanks
    Keith

  6. #6
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Racine, wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    225

    Re: Counting Blank Cells

    I paste the formula in b2 on sheet1, no luck, same with pasting it in b2 on sheet2 could you try doing it and sending it back
    with the formula pasted in the right spot, I must be doing something wrong.

    Thanks
    Keith

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,043

    Re: Counting Blank Cells

    On Jan. 22, the next listed collection date, it will have been three weeks since he collected. I modified Richard's formula to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let us know if you have any questions.
    Attached Files Attached Files
    Last edited by JeteMc; 01-25-2017 at 01:13 PM. Reason: Added .xlsx file
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  8. #8
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Racine, wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    225

    Re: Counting Blank Cells

    thanks JeteMc but I'm having some weird issues trying to download the excel file, it will only save as a php,
    and I try copying the formula to the original excel book and I get #REF trying to paste it to sheet2 cell B2.

    please help
    Thanks
    Keith

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,043

    Re: Counting Blank Cells

    I don't know why the .xlsx file would not download but I'm reattaching. I have noticed that sometimes if a long formula doesn't paste correctly into a cell, I have to paste it into the formula bar while the cell is selected.
    Let us know if you have any questions.
    Attached Files Attached Files

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Counting Blank Cells

    Quote Originally Posted by Quicksnot View Post
    thanks JeteMc but I'm having some weird issues trying to download the excel file, it will only save as a php
    That's a recent bug in the forum software.

    http://www.excelforum.com/showthread.php?t=1170626

    If all else fails just rename the file and give it an Excel file extension.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  11. #11
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Racine, wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    225

    Re: Counting Blank Cells

    that worked perfect thank you very much

    thanks
    keith

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,043

    Re: Counting Blank Cells

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools link above your first post. I hope that you have a blessed day.

  13. #13
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Racine, wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    225

    Re: Counting Blank Cells

    I was wondering if you felt like helping a bit more, I have tried to put that formula into that actual workbook I needed that in, but not much luck .

    I attached the real work book, but let me explain a little bit of the problem, the boss asked me if I could sort the guys places they stop at, and show a number
    after there name in red, when they are 3 or more weeks behind collecting the place, there's no personal information on the sheet. the $188.00 money value is
    a made up number just for testing.

    sheet1 = the bosses copy which he doesn't really want it changed as far as appearance
    sheet2 = the guys places they got to separated by code and location for each guy
    sheet3 = the bosses sheet without the colors and extra stuff he put on it
    sheet4 = the sheet that has a few macros on it that I made to separate their city route and their county routes

    the formula that I tried to put in that you sent me , almost works right, don't know what maybe I altered wrong
    but on sheet3 the numbers are 1 off, says 3 blanks under the date picked, but should be 4 including the Colum of the date.
    and there will be blank cells in the rows like sheet 1 shows and it counts them too, 188,blank,188,blank,blank,blank it shows 4, should only show 3,
    I hope I'm explaining this alright.

    Thanks
    Keith
    Attached Files Attached Files

  14. #14
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,043

    Re: Counting Blank Cells

    Attempting to accomplish the goals of counting only dates between the last collection to the date displayed in Sheet3!A1 also to apply red font to the cell if the last collection was three or more weeks ago (although as Richard said "To colour the number different to the rest of the text would need a macro").
    This proposed solution uses two helper columns on sheet 2 columns XFC3:XFD3 and down which are populated by the formulas (respectively):
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    There is also a formula in Sheet2!XFC2 as follows:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The formula that populates sheet3 column B, except for where a name is already entered is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The formula that serves a conditional formatting rule for those cells is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    In sheet 2 rows 3:19 I put in all of the collection possibilities and the results seem to work, since you said to display numeric values of three or greater only.
    Let us know if you have any questions.
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Racine, wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    225

    Re: Counting Blank Cells

    works awesome thank you

    Keith

  16. #16
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,043

    Re: Counting Blank Cells

    You're Welcome. Thank you for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

  17. #17
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Racine, wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    225

    Re: Counting Blank Cells

    Hi again JeteMc

    to change it from 3 or more, to 2 or more is this the formula that changes that?
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and where is the code that makes the text red?
    sorry, but I'm new to this stuff, and don't play with it often enough to remember what I do learn , thank god for people in this forum

    thanks again
    Keith

  18. #18
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,043

    Re: Counting Blank Cells

    Yes to change to 2 or more change the formula in Sheet2!XFD3 and down so that it reads:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    The code that marks the text red is in conditional formatting for Sheet3. If you select Sheet3 cell B2, then select Conditional Formatting, then Manage Rules, you will see the formula.
    Let us know if you have any questions.

  19. #19
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Racine, wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    225

    Re: Counting Blank Cells

    Thanks JeteMc

    works fine

    Keith

  20. #20
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,043

    Re: Counting Blank Cells

    You're Welcome and Thank You for the feedback. I hope that you have a blessed day.

+ 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. Counting blank cells up to first non-blank cell
    By DLG3 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-08-2015, 07:36 AM
  2. Ignore blank cells in formula counting number of different cells.
    By deneh in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-07-2015, 08:52 AM
  3. Excel 2007 : Counting non-blank cells
    By Sailorjohn in forum Excel General
    Replies: 5
    Last Post: 11-16-2010, 10:54 AM
  4. counting blank cells
    By flutterby21 in forum Excel General
    Replies: 8
    Last Post: 07-26-2010, 12:07 PM
  5. Replies: 3
    Last Post: 07-03-2009, 03:13 AM
  6. Counting blank cells
    By geoff1234 in forum Excel General
    Replies: 7
    Last Post: 07-10-2006, 06:29 AM
  7. Replies: 0
    Last Post: 08-23-2005, 03:43 AM

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