Results 1 to 4 of 4

Thread: Formula to add values

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Senior Member
    Join Date
    Apr 2012
    Posts
    193
    Rep Power
    14
    Thanks for the reply

    1) The formula will need to add all values from 3000 to 3199
    2) I need a seperate formula to add the values containing a D at the end for eg 3000D, 3001D, 3110D etc

  2. #2
    Forum Guru Rick Rothstein's Avatar
    Join Date
    Feb 2012
    Posts
    662
    Rep Power
    15
    Quote Originally Posted by Howardc View Post
    Thanks for the reply

    1) The formula will need to add all values from 3000 to 3199
    2) I need a seperate formula to add the values containing a D at the end for eg 3000D, 3001D, 3110D etc
    Give these formulas a try...

    Numbers without "D": =SUMPRODUCT(F1:F1000*(E1:E1000>2999)*(E1:E1000<320 0))

    Numbers with "D": =SUMPRODUCT(F1:F43*(1*REPLACE(E1:E43,LEN(E1:E43),1 ,"")>2999)*(1*REPLACE(E1:E43,LEN(E1:E43),1,"")<320 0))

    Note: The first formula will work if the specified range is larger than actual range of data; however, the second formula won't... its range must be sized to the actual range of data (blanks will make the formula return an error).

Similar Threads

  1. Vlookup Multiple Values By Adding Formula With Loop In VBA
    By Safal Shrestha in forum Excel Help
    Replies: 15
    Last Post: 04-22-2013, 04:49 PM
  2. Replies: 2
    Last Post: 03-17-2013, 06:07 PM
  3. Excel Formula To Extract Values From Text
    By Howardc in forum Excel Help
    Replies: 1
    Last Post: 08-22-2012, 09:05 PM
  4. Replies: 3
    Last Post: 04-08-2012, 09:44 AM
  5. List Unique Values Using Formula
    By LalitPandey87 in forum Excel Help
    Replies: 5
    Last Post: 01-09-2012, 08:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •