+ Reply to Thread
Results 1 to 3 of 3

Excluding text values

  1. #1
    Registered User
    Join Date
    11-13-2007
    Posts
    2

    Excluding text values

    I am making a schedule sheet and have this formula in place to add up time for week.

    =SUM((C8-B8)*24)+((E8-D8)*24)+((G8-F8)*24)+((I8-H8)*24)+((K8-J8)*24)+((M8-L8)*24)+((O8-N8)*24)

    I am looking for a way to exclude text, or set text equal to zero if i type Text into the the cell where i have my time, "Event, OFF, etc.." Now when i add text to one of those blocks i get a #value! error.

    Any help would be greatly appreciated Thanks in advance!!!
    Last edited by VBA Noob; 11-13-2007 at 01:42 PM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,695
    Try

    =(SUM(B8:O8)-SUM(B8,D8,F8,H8,J8,L8,N8)*2)*24

  3. #3
    Registered User
    Join Date
    11-13-2007
    Posts
    2
    Thanks so much worked like a charm.

+ 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