+ Reply to Thread
Results 1 to 4 of 4

IF one column is a specific value then add the cell in another column

  1. #1
    Registered User
    Join Date
    05-18-2004
    Posts
    27

    IF one column is a specific value then add the cell in another column

    I have names in column E and I have values in column S. I want the formula to add the numbers in column S if a certain name is in column E.

    Example: If Bob is in column E add the corresponding values from column S.

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try the following...

    =SUMPRODUCT(--(E1:E100="Bob"),S1:S100)

    OR

    =SUMPRODUCT(--(E1:E100=A1),S1:S100)

    ...where A1 contains the name of interest.

    Hope this helps!

    Quote Originally Posted by AnnaV
    I have names in column E and I have values in column S. I want the formula to add the numbers in column S if a certain name is in column E.

    Example: If Bob is in column E add the corresponding values from column S.

  3. #3
    Registered User
    Join Date
    05-18-2004
    Posts
    27
    That worked great. Thanks!

    What does '---' mean?

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Quote Originally Posted by AnnaV
    That worked great. Thanks!

    What does '---' mean?
    Have a look at Aladin's explanation here...

    http://www.mrexcel.com/board2/viewtopic.php?t=103530

    Hope this helps!

+ 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