+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    03-15-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    2

    Excel formula - find value & add corresponding value to another cell

    Hi,

    I want to search through a column and add a corresponding value to another cell. For example,

    A 5
    B 4
    A 5
    A 2
    B 3

    I want to search through the first column above for the value "A" and return the value 12 in another cell, let's say C20. I've looked into vlookup, index, match but feel that I'm probably complicating things.

    Any help much appreciated.

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    18,228

    Re: Excel formula - find value & add corresponding value to another cell

    Try this:

    =SUMIF(A:A, "A", B:B)
    _________________
    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
    03-15-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Excel formula - find value & add corresponding value to another cell

    That was easy!

    Thanks a lot!

  4. #4
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    18,228

    Re: Excel formula - find value & add corresponding value to another cell

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.
    _________________
    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!)

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.2.0