+ Reply to Thread
Results 1 to 8 of 8

How to add a sum that matches certain text criteria

  1. #1
    Registered User
    Join Date
    04-14-2021
    Location
    Thetford
    MS-Off Ver
    Office 365
    Posts
    13

    How to add a sum that matches certain text criteria

    Hi all
    Im looking to work out how i can a create a value/sum based on text

    So as per my example Set A would need to multiply the total by 4 and again in a separate column by 6
    Set B would have a different criteria being multiplied by 2 and next column by 4 and so on

    i would do this manually, but i have around 10 different sets and thousands of lines

    Hope the above makes some sense to you wizards, as im relatively new to excel, and probably like most newbies can work out a lot of problems
    but this one has me stumped

    Many Thanks
    Hiltsy
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,985

    Re: How to add a sum that matches certain text criteria

    The easiest way would be to add two helper columns with lookup formulae to add the lower and upper multipliers from a lookup list, then it would simply be a case of applying these to a sum (multiplication).

    Columns C and D could be hidden, of course.
    Attached Files Attached Files
    Last edited by AliGW; 04-15-2021 at 03:16 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    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,215

    Re: How to add a sum that matches certain text criteria

    In E2

    =$D2*(LOOKUP(RIGHT($B2,1),{"A","B","C"},{4,2,6}))

    in F2

    =$D2*(LOOKUP(RIGHT($B2,1),{"A","B","C"},{6,4,8}))

  4. #4
    Registered User
    Join Date
    04-14-2021
    Location
    Thetford
    MS-Off Ver
    Office 365
    Posts
    13

    Re: How to add a sum that matches certain text criteria

    Thankyou, thats worked a treat

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,985

    Re: How to add a sum that matches certain text criteria

    Which solution did you go with? John's is neat.

    Thanks for the rep.

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: How to add a sum that matches certain text criteria

    Single formula in E2, drag down and accross

    Please Login or Register  to view this content.
    Quang PT

  7. #7
    Registered User
    Join Date
    04-14-2021
    Location
    Thetford
    MS-Off Ver
    Office 365
    Posts
    13

    Re: How to add a sum that matches certain text criteria

    Quote Originally Posted by AliGW View Post
    Which solution did you go with? John's is neat.

    Thanks for the rep.
    i opted for your way, i tried both, and they both work equally well, but with my lack of knowledge and the amount of sets (hundreds) i found your way easier
    and no problem, thanks again

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,985

    Re: How to add a sum that matches certain text criteria

    Yes, I suspected the number of sets would swing it one way or the other. Thanks for letting us know.

+ 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. search 2 criteria and if it matches give me the number of matches
    By sxch12 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-14-2017, 03:16 PM
  2. Output Text if Multiple Criteria Matches
    By sadele89 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-09-2016, 03:07 PM
  3. [SOLVED] Color cells in a row based on unique text that matches text on a different worksheet
    By rn_ in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-11-2016, 10:46 AM
  4. VLOOKUP Partial matches when searched text is longer than actual text
    By mockions in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-23-2015, 11:16 PM
  5. Move text from cell to cell if matches criteria, and edit text
    By joematzzie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-13-2015, 07:58 AM
  6. Formula(s) to extract string that matches certain criteria from a text
    By Turtler in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 01-27-2014, 05:18 AM
  7. If values in 2 cells matches criteria, add text to a third cell
    By Zarkov in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-31-2011, 03:14 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