Closed Thread
Results 1 to 6 of 6

Cell count for columns containing any combination of ceretain numbers but NOT letters TR

  1. #1
    Registered User
    Join Date
    08-09-2015
    Location
    Toronto
    MS-Off Ver
    Microsoft Office 2007
    Posts
    23

    Question Cell count for columns containing any combination of ceretain numbers but NOT letters TR

    Hello all,

    Thanks in advance for looking.

    I am creating a weekly restaurant staff schedule and could use some help. I am tying to calculate how many staff members are scheduled within a column based on a time that they have been scheduled to work in a cell.

    The times listed would vary in the column. Times would be listed as a one, two, three or four digits as well as one to three letters at the end. Hours would be either single or double digits depending on the time of day.
    Range of times would be the following:

    9
    9 TR
    930
    10
    10 TR
    11
    11 L
    11 TR
    1130
    12
    12 L
    12 TR

    Count Numbers.jpg

    I would like to not have to change the formula in the future if I decide to add other scheduled times to the schedule.

    I was thinking of a formula that would read only the text containing numbers that DON'T have a TR in it.

    What would the best formula to use to calculate the total number of staff working on that shift who have a scheduled time that doesn't include TR in the cells?
    Last edited by RaffPost; 08-15-2015 at 10:12 PM. Reason: typo

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Cell count for columns containing any combination of ceretain numbers but NOT letters

    Hi and welcome to the forum

    Pictures are of little value. Honestly, no one wants to re-type your data to try and solve your issue. Additionally, we would only be guessing at how your data was structured, ie. formulas, formatting, etc.

    Please attach a sample file that represents what you have. The structure of your attachment should be the same structure as your actual data. Any proprietary information should be changed.

    Include in the attachment any code you're currently using (whether it works or not) and an "After" of what you wish the output to be.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    08-09-2015
    Location
    Toronto
    MS-Off Ver
    Microsoft Office 2007
    Posts
    23

    Question Re: Cell count for columns containing any combination of ceretain numbers but NOT letters

    Thanks for the advice! Here it is!

    [Template] Terroni Adelaide FOH Schedule.xlsx

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Cell count for columns containing any combination of ceretain numbers but NOT letters

    See if this works for you. In Cell C110 put in your codes:
    Data Range
    C
    110
    9:00
    111
    9:00TR
    112
    10:00
    113
    10:00TR
    114
    11:00
    115
    11:00TR
    116
    11:00FR
    117
    12:00
    118
    12:00FR
    119
    12:30FR
    120
    OC
    121
    RO
    122
    X
    123
    X X X X X

    In D110 type and copy down and over as required: =COUNTIF($D$20:$D$99,C$110)

  5. #5
    Registered User
    Join Date
    08-09-2015
    Location
    Toronto
    MS-Off Ver
    Microsoft Office 2007
    Posts
    23

    Re: Cell count for columns containing any combination of ceretain numbers but NOT letters

    Quote Originally Posted by alansidman View Post
    See if this works for you. In Cell C110 put in your codes:
    Data Range
    C
    110
    9:00
    111
    9:00TR
    112
    10:00
    113
    10:00TR
    114
    11:00
    115
    11:00TR
    116
    11:00FR
    117
    12:00
    118
    12:00FR
    119
    12:30FR
    120
    OC
    121
    RO
    122
    X
    123
    X X X X X

    In D110 type and copy down and over as required: =COUNTIF($D$20:$D$99,C$110)
    Thanks for the reply - I realize now that the workbook I uploaded had a few other working pages in there. I've removed the pages and changed some of the data. I'm uploading the workbook again - I'm not certain I know what to do based on your instructions.

    I need the total count in a cell that tells me how many people I have scheduled to work that shift that are not training.

    Adam 9
    Danny 10
    Emily 1030
    Erica 11 TR
    Gene 12
    Lindsay 12 TR

    This should tell me that I have 4 people working despite 6 people on that scheduled shift - two of which are training.

    Thanks again!

    [Template] Terroni Adelaide FOH Schedule.xlsx
    Last edited by RaffPost; 08-16-2015 at 02:41 PM. Reason: Additional information added

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Cell count for columns containing any combination of ceretain numbers but NOT letters

    This thread has been closed at the OP request. OP has started a new thread with appropriate correct data.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How to count letters or numbers on a cell
    By pccamara in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-08-2015, 05:54 AM
  2. combination of numbers or letters
    By torjan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2014, 06:20 PM
  3. [SOLVED] Removing letters from text & letters combination
    By benoj2005 in forum Excel General
    Replies: 5
    Last Post: 02-26-2014, 11:20 AM
  4. Searching cell contents for a combination of letters
    By mangaliso89 in forum Excel General
    Replies: 1
    Last Post: 05-25-2011, 11:46 AM
  5. Sum numbers with certain combination of letters
    By sizcorx in forum Excel General
    Replies: 1
    Last Post: 10-09-2010, 09:10 PM
  6. Replies: 0
    Last Post: 04-03-2006, 07:25 PM
  7. How do i count numbers and letters to find a total count of all
    By Linda in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-10-2005, 12:55 PM

Tags for this Thread

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