+ Reply to Thread
Results 1 to 6 of 6

Search word then add cell

  1. #1
    Forum Contributor
    Join Date
    08-19-2012
    Location
    Sydney
    MS-Off Ver
    MS Office 365/16
    Posts
    282

    Search word then add cell

    Hi,

    See attached my sample. If you go to column V and X you will see in red font the outcome I am looking for.

    I need to find the word and then sum cells. I hope this makes sense. Please let me know if you need further information.

    Thanks,
    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 (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,792

    Re: Search word then add cell

    For the first one:

    =SUMIFS(OFFSET($B7:$U7,0,2),$B$6:$U$6,"Emolument")

    and the second I'm afraid I don't understand - there does not appear to be any summable data for anyone in their first column on row 17.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Search word then add cell

    Quote Originally Posted by sirdon View Post
    See attached my sample. If you go to column V and X you will see in red font the outcome I am looking for.
    Having read that, I was expecting you to want a fomula to go in columns V and X, and that the red font would show some expected results that you had calculated manually. The additional decriptions could have just as easily been given here.

    Ali's suggestion makes unnecessary use of a volatile function, it can be done without by defining the ranges correctly.

    =SUMIFS($D7:$S7,$B$6:$Q$6,"Emolument")

    I agree with Ali's comment that the second requirement makes no sense. Had you entered the expected results for the first couple of people as your expected outcome then maybe it would have been clearer.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,792

    Re: Search word then add cell

    Yes, that's better. Funny - I tried it and it wasn't working, hence the OFFSET suggestion. Must have been a glitch at my end, as it's working fine now.

    Sirdon - use Jason's version of the formula.

  5. #5
    Forum Contributor
    Join Date
    08-19-2012
    Location
    Sydney
    MS-Off Ver
    MS Office 365/16
    Posts
    282

    Re: Search word then add cell

    AliGW, thank you so much. it all works. From the formula you gave i was able to do the other one. Many thanks as always

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,792

    Re: Search word then add cell

    Glad to have helped.

+ 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 Help Pls - Search cell for WORD, return fields from WORD lookup
    By tomski777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-17-2017, 12:02 AM
  2. Excel VBA - Word to search for part of a word and replace full word
    By charlie543 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-24-2016, 02:56 AM
  3. to search a word in a cell
    By erickmcburger in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-23-2014, 09:41 AM
  4. Replies: 13
    Last Post: 08-04-2011, 09:41 AM
  5. Replies: 1
    Last Post: 01-25-2011, 10:50 PM
  6. Search word and Place founded word in cell
    By 9813268329 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-01-2010, 07:27 AM
  7. Search word within Cell (Vlookup+Search)
    By Amarjeet Singh in forum Excel General
    Replies: 6
    Last Post: 01-30-2009, 10:26 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