+ Reply to Thread
Results 1 to 4 of 4

Problem adding cells with alpha characters

Hybrid View

New(b)toexcel Problem adding cells with... 03-07-2007, 05:58 PM
VBA Noob Hi, How about ... 03-07-2007, 06:13 PM
New(b)toexcel Thanks, but "s" has 5... 03-08-2007, 11:53 AM
VBA Noob Hi, Try this array (Ctrl +... 03-08-2007, 01:27 PM
  1. #1
    Registered User
    Join Date
    03-07-2007
    Posts
    2

    Problem adding cells with alpha characters

    I have a form that I need to do and I am stuck with the format that it is in and I cannot seem to make it do what I need it to do!

    I am attaching a sample of what I have and what it needs to do. Essentially it needs to add a series of cells across a row however the format is odd (S 6.5) as an example and it needs to skip cells where there is a weekend.
    Any help would be tremendously appreciated!!
    Attached Files Attached Files

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    How about

    =SUMPRODUCT(--(ISNUMBER(SEARCH("S ",A1:J1))))*6

    Change the S, Range and 6 as required for other values

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    03-07-2007
    Posts
    2
    Thanks, but "s" has 5 different values on my form (5, 6, 6.5, 7.25, 7.75) and I'm not sure how you'd get that formula to count multiple values for both "s" and "v"...

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Try this array (Ctrl + Shift + Enter)

    =SUM(IF(LEFT(B2:K2,2)="S ",1*MID(B2:K2,3,4)))

    VBA Noob
    Last edited by VBA Noob; 03-08-2007 at 01:53 PM.

+ 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