+ Reply to Thread
Results 1 to 10 of 10

SUMIF without Formatting Column A as Text

  1. #1
    Forum Contributor
    Join Date
    02-04-2014
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    366

    SUMIF without Formatting Column A as Text

    Hello,

    I would like to sum all values in Column B that have a number starting with 115 in Column A. However, I cannot format the column as TEXT.

    See example workbook.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    03-14-2013
    Location
    England
    MS-Off Ver
    2007
    Posts
    186

    Re: SUMIF without Formatting Column A as Text

    Hi There,

    Maybe like this? ....

    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    Re: SUMIF without Formatting Column A as Text

    try:
    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: SUMIF without Formatting Column A as Text

    Try

    =SUMPRODUCT(--(INT($A$2:$A$4/(10^(LEN($A$2:$A$4)-3)))=115)*($B$2:$B$4))

    allows for 115876 i.e numbers of length >= 4
    Last edited by JohnTopley; 11-26-2015 at 05:59 PM.

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: SUMIF without Formatting Column A as Text

    Hi EnigmaMatter,

    How about using a Helper Column that converts the numbers to text and then do your sumif?

    See the attached.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  6. #6
    Forum Contributor
    Join Date
    02-04-2014
    Location
    Florida, United States
    MS-Off Ver
    Excel 2010, Excel 2013
    Posts
    366
    Quote Originally Posted by JohnTopley View Post
    Try

    =SUMPRODUCT(--(INT($A$2:$A$4/(10^(LEN($A$2:$A$4)-3)))=115)*($B$2:$B$4))

    allows for 115876 i.e numbers of length >= 4
    This is the winning answer. Thabks everyone.
    Thank You,

    EnigmaMatter

  7. #7
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: SUMIF without Formatting Column A as Text

    Hi

    Try this solution

    =SUMPRODUCT(--(INT((INT(A2:A4)/10^(INT(LOG(A2:A4,10))-2)))=115),B2:B4)

    for any numbers and no text.
    Regards

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

    Re: SUMIF without Formatting Column A as Text

    Please Login or Register  to view this content.
    tested with a long string, text and/or numbers
    Last edited by sandy666; 11-26-2015 at 07:20 PM.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: SUMIF without Formatting Column A as Text

    @Sandy666 best solution! I am sure I tried that solution but it didn't (?) work! (too late in the day I think)

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

    Re: SUMIF without Formatting Column A as Text

    thank you John

+ 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] Sumif function to total column e if text in column a appears in more than one row
    By SMITH.CRYSTAL in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-23-2015, 03:58 PM
  2. [SOLVED] SUMIF all cells in one column, that are below/above a cell with a certain text?
    By tokifoki in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-08-2014, 05:28 PM
  3. [SOLVED] Condition Formatting on a Column of Text
    By Chessyboy in forum Excel General
    Replies: 4
    Last Post: 07-24-2014, 01:47 PM
  4. Condition Formatting on a Column of Text
    By Chessyboy in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 07-22-2014, 10:00 AM
  5. [SOLVED] Cond. formatting a column/Range, highlight cell in column/range if equal to specific text
    By DFrank231 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2013, 03:35 PM
  6. SUMIF based on text in a 'date column'
    By nythng in forum Excel General
    Replies: 3
    Last Post: 04-19-2012, 06:26 PM
  7. Converting date column to text formatting
    By mjwillyone in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2009, 12:20 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