+ Reply to Thread
Results 1 to 5 of 5

Function will not find specific values

  1. #1
    Registered User
    Join Date
    09-13-2013
    Location
    Herndon, Virginia
    MS-Off Ver
    Excel 2003
    Posts
    6

    Function will not find specific values

    I am using the following formula (as an example):

    =SUMIFS(G$2:G$2000,$A$2:$A$2000,"6*",$B$2:$B$2000,"3*")

    To find the sum of the numbers in column G where column A starts with a 6 and column B starts with a 3.

    It works for values like the following:


    6.093, 6.095 | 3.113, 3.115

    But not for single values like this:

    3.105 | 6.021

    However, if I put a comma after the singular values it then can identify it:

    3.105, | 6.021,

    See the attached example for reference where it only sums rows 2 and 4 but I want it to sum the values in 3 as well. I have tried changing the "non-comma" example to text but this did not work. Why doesn't it identify the numbers without commas and how can I get it to do that?

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Function will not find specific values

    Try this.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Function will not find specific values

    try
    =SUMPRODUCT(--(LEFT($A$2:$A$4)="6"),--(LEFT($B$2:$B$4)="3"),F2:F4)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    09-13-2013
    Location
    Herndon, Virginia
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Function will not find specific values

    Looks like both of these worked, thanks guys! Can either of you explain why my code didn't work and what changed?

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Function will not find specific values

    memo to self: refresh page before posting a duplicate answer

+ 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. Macro to find all specific values in column and replace adjacent cell values
    By dblock02 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2013, 06:03 AM
  2. Replies: 1
    Last Post: 04-19-2013, 08:30 PM
  3. [SOLVED] Using range.find to find two specific values in two columns
    By mhrub in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2012, 01:02 PM
  4. Find specific values in a column
    By amivshek in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-09-2011, 02:54 PM
  5. How can i find specific values along a trendline?
    By babysweet in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-03-2005, 01:05 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