+ Reply to Thread
Results 1 to 3 of 3

Sumif for letters instead of numbers

  1. #1
    Registered User
    Join Date
    05-10-2004
    Posts
    28

    Sumif for letters instead of numbers

    I currently use sumif to return the size value for a size code. If the size value happens to be a letter like s, m, l or xl opposed to 4, 6, 8 or 10, the sumif formula will not bring it back..

    Can anyone help.

  2. #2
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    I guess, you need the countif function.

    - Mangesh

  3. #3
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Set-up a table with the size codes and corresponding values, let's say in Columns A and B, something like this...

    4 Value1
    6 Value2
    8 Value3
    10 Value4
    s Value5
    m Value6
    l Value7
    xl Value8

    Then use the following formula...

    =VLOOKUP(C1,A1:B8,2,0)

    ...where C1 contains the lookup value (size code).

    Hope this helps!

    Quote Originally Posted by okanem
    I currently use sumif to return the size value for a size code. If the size value happens to be a letter like s, m, l or xl opposed to 4, 6, 8 or 10, the sumif formula will not bring it back..

    Can anyone help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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