+ Reply to Thread
Results 1 to 7 of 7

SUMIF only works if criteris (or range) is in numbers

  1. #1
    Registered User
    Join Date
    04-11-2015
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    54

    SUMIF only works if criteris (or range) is in numbers

    Hi,
    I am trying to count the total quantity by item name (note, the criteria is dynamic, not able to fix it as text using " "), how should this be done?

    Looks quite straight forward, but somehow I have tried various ways of copy and paste differently, have tried changing the cell format... but to no avail.

    Can please help.

    Thank you.
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider (Windows 10)
    Posts
    49,795

    Re: SUMIF only works if criteris (or range) is in numbers

    Select cells B2 to B15, then the yellow diamond that pops up to their left. Select convert text to numbers.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Registered User
    Join Date
    04-11-2015
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    54

    Re: SUMIF only works if criteris (or range) is in numbers

    Hi Ali,

    There is no yellow diamond pops up on the left of my column.

    Though, I managed to convert by using right clicking on the mouse.
    After that, nothing happened.

    But, if I click individual cell and hit 'enter', only then the effect is activated, i.e. the cell is aligned to the right, and it can be counted on the column F, e.g. below, after I have 'activated' cell B2. And need to repeat each step of click-enter for the remaining B2 to B15...

    Is there anything wrong with my excel?
    Attached Images Attached Images
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider (Windows 10)
    Posts
    49,795

    Re: SUMIF only works if criteris (or range) is in numbers

    You need to determine why they have been converted to text in the first place.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    21,285

    Re: SUMIF only works if criteris (or range) is in numbers

    Highlight column B, click on Data | Text-to-Columns then click on Finish in the panel that pops up.

    Hope this helps.

    Pete

  6. #6
    Registered User
    Join Date
    04-11-2015
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    54

    Re: SUMIF only works if criteris (or range) is in numbers

    Thanks Pete! Problem solved!

    Hi Ali, the data is copied from a report generated from another programme.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider (Windows 10)
    Posts
    49,795

    Re: SUMIF only works if criteris (or range) is in numbers

    There's the problem, then.

+ 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 - works SUMtimes (pun)
    By bakeraj256 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-04-2014, 05:07 PM
  2. How to find rank for two different criteris?
    By yjames in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-27-2013, 03:15 AM
  3. Function to return all values that meet criteris
    By ARayburn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-23-2013, 06:09 PM
  4. Replies: 1
    Last Post: 05-28-2012, 01:47 PM
  5. Replies: 7
    Last Post: 01-10-2012, 10:47 AM
  6. sumif for Text cells? What works?
    By Jirime in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 01-09-2009, 04:42 PM
  7. enter criteris in user form and draw matching records
    By gelandl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2008, 05:47 AM

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