+ Reply to Thread
Results 1 to 11 of 11

Sum a range containing 3 text Characters then a number but not case sensitive

  1. #1
    Forum Contributor
    Join Date
    01-21-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    116

    Sum a range containing 3 text Characters then a number but not case sensitive

    Hi All,

    I have attached a workbook, however, Sheet 1 contains some data initials followed by number in 1 cell. Sheet 2 has all the magic that separates it all out. Formula credit to zbor.

    Please Login or Register  to view this content.
    The formula works perfect it the Initals are entered in uppercase like AAA4 however I can see it being typed as aaa4.

    The question I need your talent for is how to make this formuala case insensitive. I thought MATCH was case insensitive so stuck.

    Help.xlsx

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Sum a range containing 3 text Characters then a number but not case sensitive

    Try

    =SUMPRODUCT((LEFT(Sheet1!$D$4:$ND$13,3)=$D5)*(Sheet1!$D$2:$ND$2>=$C$2)*(Sheet1!$D$2:$ND$2<=$C$3)*(0&REPLACE(Sheet1!$D$4:$ND$13,1,3,"")))

  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Sum a range containing 3 text Characters then a number but not case sensitive

    Using your posted workbook...try this formula (copied down):
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Forum Contributor
    Join Date
    01-21-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    116

    Re: Sum a range containing 3 text Characters then a number but not case sensitive

    Thank you to you both Jonmo1 & Ron Coderre..

    Both formula work a treat and a standard not array.

    Now to choose which one to use?

    This forum is brilliant all, thanks to you guys.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Sum a range containing 3 text Characters then a number but not case sensitive

    Glad to hlep.


    They both do pretty much the same thing.
    I just didn't put in the named ranges like Ron did.

    Mine uses the Replace function to remove the Text string, Ron's uses MID.
    Though mine is assuming your text codes will always be 3 digits.
    Ron's will accomodate depending on the string you put in column D.

    So Mine might be a 'tad' faster (probably not a negiligible difference)
    But if your text codes will ever be anything other than 3 characters, then you'll need to use the LEN function like Ron's.

  6. #6
    Forum Contributor
    Join Date
    01-21-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    116

    Re: Sum a range containing 3 text Characters then a number but not case sensitive

    Thank you,

    Yes they might by 2 characters, but both fail one comes up with a 0 the other #VALLUE, zbor works but is case sensitive.

    Any thoughts

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Sum a range containing 3 text Characters then a number but not case sensitive

    Can you post an example where it's 2 ?

  8. #8
    Forum Contributor
    Join Date
    01-21-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    116

    Re: Sum a range containing 3 text Characters then a number but not case sensitive

    Hi Jonmo

    Here is the workbook with an example.

    Help.xlsx

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Sum a range containing 3 text Characters then a number but not case sensitive

    Try this (array entered with CTRL + SHIFT + ENTER)

    =SUM((LEFT(Sheet1!$D$4:$ND$13,LEN($D5))=$D5)*(Sheet1!$D$2:$ND$2>=$C$2)*(Sheet1!$D$2:$ND$2<=$C$3)*(IFERROR(REPLACE(Sheet1!$D$4:$ND$13,1,LEN($D5),"")+0,0)))

  10. #10
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Sum a range containing 3 text Characters then a number but not case sensitive

    As much as it pains me to admit it, an ARRAY FORMULA, completed by holding down CTRL and SHIFT when you press ENTER (instead of just pressing ENTER), does what you want.

    Using your latest file, try this formula, copied down:
    Please Login or Register  to view this content.
    Is that something you can work with?

  11. #11
    Forum Contributor
    Join Date
    01-21-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    116

    Re: Sum a range containing 3 text Characters then a number but not case sensitive

    Thank you so much, works great, Thank you again for your time.

+ 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. VLOOKUP help that is case sensitive, exact, and allows text and numbers
    By dafacta in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-08-2013, 12:26 PM
  2. [SOLVED] Macro for Case Sensitive Text Search
    By vcs1161 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-23-2013, 11:13 AM
  3. Replies: 4
    Last Post: 02-16-2012, 11:29 AM
  4. Counting case-sensitive values withon a range of cells
    By Jessika in forum Excel General
    Replies: 2
    Last Post: 02-13-2007, 04:28 PM
  5. Replies: 4
    Last Post: 09-20-2005, 09:05 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