+ Reply to Thread
Results 1 to 5 of 5

Text in cell totalling

  1. #1
    Registered User
    Join Date
    10-01-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Question Text in cell totalling

    Hi

    I am having trouble with trying to get a total if there is certain text in the cells.

    ie.

    In a small rota of 7 people over a monthly period I need to illustrate total number of people available on any day. Therefore think I need to create a condition in a cell to add 1 if the text is W or STBY OR RTC to give total for the day
    .
    W = Workday, Stby = Standby, RD = Rest Day, H = Holiday, S = Sick, RTC = Planned Work

    Very basic knowledge of excel so can't work out my IF's from my SUM's

    All help gratefully recieved.

    Lysa
    Last edited by Lysa; 10-01-2009 at 07:35 AM. Reason: example unclear

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Text in cell totalling

    Based on your sample, assuming first data is on row 2 and total to go in I2

    I2: =SUM(COUNTIF(B2:H2,{"W","STBY","RTC"}))
    copied down

  3. #3
    Registered User
    Join Date
    10-01-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Text in cell totalling

    Wow thanks for speedy reply. Does it make a differenct if using Excel or Works as am using Works (arrg) but will be copying it to Excel eventually?

    Lysa

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Text in cell totalling

    Does it make a differenct if using Excel or Works as am using Works (arrg) but will be copying it to Excel eventually?
    I don't have Works so I can't say. What I can say is that the suggestion made will work in Excel.

  5. #5
    Registered User
    Join Date
    10-01-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Text in cell totalling

    You were right it works in Excel. Not sure why but doesn't in Works.

    Anyway thank you so much -you've stopped my head exploding.

    Lysa

+ 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