+ Reply to Thread
Results 1 to 6 of 6

If any cell in column G of 'Sheet 2' contains 'Rent/mortgage' use values from the same row

  1. #1
    Registered User
    Join Date
    05-23-2023
    Location
    London, England
    MS-Off Ver
    Mac Numbers
    Posts
    2

    If any cell in column G of 'Sheet 2' contains 'Rent/mortgage' use values from the same row

    what formula can i use to get the following output:
    if any cell in column G of 'Sheet 2' contains 'Rent/mortgage', use values from the same row (columns E+F)

    Assume potentially multiple cells containing the text being searched, so will need the total of all values from those rows.
    Data is from a bank statement.
    Text being searched will change dependant on output cell.
    Data is column G is all formatted to manually selected drop downs.
    Last edited by AliGW; 05-24-2023 at 01:50 AM. Reason: Thread title improved - generic thread titles are NOT permitted.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,937

    Re: Formula question

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file and a mocked up solution.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Formula question

    maybe
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Here's how the formula works:
    1. SUMIFS is used to calculate the sum of values from column E (Assuming it contains numerical values) in Sheet2 that meet the specified criteria.
    2. Sheet2!E:E refers to the entire column E in Sheet2.
    3. Sheet2!G:G refers to the entire column G in Sheet2.
    4. "*Rent/mortgage*" is the criteria being searched for. The asterisks (*) act as wildcards to match any text containing "Rent/mortgage" anywhere within the cell.
    5. SUMIFS(Sheet2!E:E,Sheet2!G:G,"*Rent/mortgage*") calculates the sum of values from column E in Sheet2 where column G contains "Rent/mortgage".
    6. Similarly, SUMIFS(Sheet2!F:F,Sheet2!G:G,"*Rent/mortgage*") calculates the sum of values from column F in Sheet2 where column G contains "Rent/mortgage".
    7. The two SUMIFS functions are added together using the + operator to get the total sum.

    Make sure to replace "Sheet2" with the actual name of your sheet containing the data.

  4. #4
    Registered User
    Join Date
    05-23-2023
    Location
    London, England
    MS-Off Ver
    Mac Numbers
    Posts
    2

    Re: Formula question

    Perfect thank you!!!!

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Formula question

    you are welcome




    if the problem is solved, make me happy and hit Add Reputation (bottom left corner next to the post that was helpful)

  6. #6
    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. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: If any cell in column G of 'Sheet 2' contains 'Rent/mortgage' use values from the same

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new here, I have done it for you this time.)
    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.

+ 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. What affect has question 1 on question 2? Is there a formula?
    By MaxAbrahamsson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-03-2022, 12:34 PM
  2. Replies: 1
    Last Post: 03-04-2012, 12:03 AM
  3. Replies: 2
    Last Post: 10-08-2009, 09:51 PM
  4. Replies: 1
    Last Post: 05-20-2009, 08:15 AM
  5. Replies: 1
    Last Post: 05-20-2009, 07:56 AM
  6. [SOLVED] Formula question-change formula based cell calling it?
    By seethesun in forum Excel General
    Replies: 2
    Last Post: 02-08-2009, 01:39 PM
  7. Replies: 3
    Last Post: 05-05-2006, 12:55 PM

Tags for this Thread

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