+ Reply to Thread
Results 1 to 4 of 4

Total value that matches the state abbreviation using XLOOKUP and SUM

  1. #1
    Registered User
    Join Date
    07-24-2015
    Location
    Fairhope, AL, United States
    MS-Off Ver
    16.35 (Office 365)
    Posts
    40

    Total value that matches the state abbreviation using XLOOKUP and SUM

    I have a sample worksheet attached with a formula that doesn't work in cell H8. I am attempting to add together all fees that were charged in a particular state. For instance, there were three occasions where work was done in CA. I wish to be able to select any state in cell H6 from a drop down menu and return a total of all fees charged in that state only. Can someone help me with this?
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: I am attempting to total value that matches the state abbreviation using XLOOKUP and S

    The formula would be:

    =SUMIF(A6:A16,H6,C6:C16)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-24-2020
    Location
    Belgium
    MS-Off Ver
    2013
    Posts
    95

    Re: I am attempting to total value that matches the state abbreviation using XLOOKUP and S

    this formula does the trick for you, I hope.
    H8
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    07-24-2015
    Location
    Fairhope, AL, United States
    MS-Off Ver
    16.35 (Office 365)
    Posts
    40

    Re: I am attempting to total value that matches the state abbreviation using XLOOKUP and S

    JBeaucaire, thank you for the help. It works beautifully. I will mark the thread "solved" and add a reputation for you.

+ 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] Formula to change full state name to abbreviation
    By 47magic in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-25-2020, 05:55 PM
  2. Help with formula - pull state abbreviation out of string of text
    By algioia in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-10-2019, 01:14 PM
  3. Need help with Moving Annual Total formula by Product, State, and Zip
    By Erica M in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-14-2013, 04:04 PM
  4. Replies: 4
    Last Post: 01-22-2011, 07:33 AM
  5. [SOLVED] spell out state name from an abbreviation
    By julieb in forum Excel General
    Replies: 2
    Last Post: 05-19-2005, 01:06 PM
  6. Replies: 14
    Last Post: 02-14-2005, 08:06 PM
  7. Replies: 0
    Last Post: 02-11-2005, 08:06 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