+ Reply to Thread
Results 1 to 6 of 6

How to Sum based on partial match of a cell in number format (not text format)

  1. #1
    Registered User
    Join Date
    03-24-2017
    Location
    Beloit, WI
    MS-Off Ver
    MS Office 2007
    Posts
    3

    How to Sum based on partial match of a cell in number format (not text format)

    Hi, I don't know how to sum based on a specific number string of a cell.

    My data is (for example):
    1000.2350 (398.46)
    1000.2360 (131.35)
    1000.2370 (305.48)
    1000.2380 (415.67)
    86.5010 9,092.16
    86.5020 3,634.63
    86.5030 970.01
    86.5048 11,178.25
    86.5060 (1,454.13)
    86.5070 53.78
    86.5080 1,787.84
    149.5010 3,057.78
    149.5020 567.31
    149.5040 2,870.21
    149.5060 (523.79)

    I'm trying to sum all values from Column B that match .5048 from Column A. My problem is that I cannot have Column A formatted as text. I have to have it format as numbers, so I don't think I can use wildcards. Any suggestions? Thanks much!

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: How to Sum based on partial match of a cell in number format (not text format)

    Assuming your data has header in row 1.

    Try something like below.
    =SUMPRODUCT(ISNUMBER(FIND(".5048",$A$2:$A$16&""))*($B$2:$B$16))

    By concatenating Column A with "" blank, it converts numbers to text.

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: How to Sum based on partial match of a cell in number format (not text format)

    This should work

    =SUMPRODUCT((MOD(A1:A15,1)=0.5048)*(B1:B15))
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Registered User
    Join Date
    03-24-2017
    Location
    Beloit, WI
    MS-Off Ver
    MS Office 2007
    Posts
    3

    Re: How to Sum based on partial match of a cell in number format (not text format)

    CK76 - This worked perfect! Thank you so much!!!! You made my day.

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: How to Sum based on partial match of a cell in number format (not text format)

    My one worked too

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to Sum based on partial match of a cell in number format (not text format)

    here another option: =SUMPRODUCT((RIGHT($A$1:$A$15,4)="5048")*($B$1:$B$15))

+ 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. [SOLVED] VBA textbox populating cells in text format instead of number format
    By chrismccarthy17 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-03-2016, 07:46 AM
  2. Replies: 4
    Last Post: 11-11-2015, 12:05 PM
  3. How to conditionally format cells using partial text
    By Cremorneguy in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-26-2014, 11:26 AM
  4. [SOLVED] Format row cell color based on number of text strings in a column
    By Pierce Quality in forum Excel General
    Replies: 22
    Last Post: 07-31-2013, 02:37 PM
  5. Convert date and time in serial number format to text format
    By nda13112 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2013, 02:45 PM
  6. conditional format based on sum of value assigned to partial text field
    By rshiley in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-19-2010, 06:44 PM
  7. Number format based on number format of another cell in another workbook
    By Rob in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-09-2005, 01:06 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