+ Reply to Thread
Results 1 to 3 of 3

Not sure which functions to use

  1. #1
    Registered User
    Join Date
    09-24-2008
    Location
    Canada
    Posts
    2

    Not sure which functions to use

    Hello,

    I need to add values from a range but I need the Sum to stop if it sees a certain value.

    ie: range is from A1:A8
    A1 = Dan, A2 = Bob, A2 = Chris, A3 = doug etc...

    I want to add the cells (1 point for each) until the Name "doug" comes and stop counting after it does. If the name never appears then add from 1 to 8.

    Thanks.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    with that range and text to be looked for in B1
    =IF(ISNA(MATCH(B1,A1:A8,0)),COUNTA(A1:A8),COUNTA(INDIRECT("A1:A"&MATCH(B1,A1:A8,0))))

  3. #3
    Registered User
    Join Date
    09-24-2008
    Location
    Canada
    Posts
    2
    Thanks alot. Took me some time to understand it but I'm much better off now. LOL.

+ 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. Help with custom functions
    By fecurtis in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-23-2008, 12:05 PM
  2. Descriping excel udf functions
    By vbfortran in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-14-2008, 02:09 PM
  3. Module not seeing functions in ThisWorkbook
    By ctmurray in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-05-2008, 11:24 PM
  4. Financial Functions Price Yield, Etc...
    By gonavy0806 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-24-2007, 03:10 PM
  5. Overcoming limit of nested IF functions
    By JonBoy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-27-2006, 01:44 PM

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