+ Reply to Thread
Results 1 to 9 of 9

INDIRECT Formula for auto categorize

  1. #1
    Registered User
    Join Date
    02-13-2015
    Location
    phoenix
    MS-Off Ver
    2007/2010
    Posts
    10

    INDIRECT Formula for auto categorize

    I am using the below INDIRECT formula (to help auto-categorize bank transactions) where the list of categories are on the same tab

    =OFFSET($G$2,SUMPRODUCT(--ISNUMBER(FIND(INDIRECT($J$1),B2,1))*ROW(INDIRECT($J$1)))-2,1)

    To avoid too much information being on one tab, I wanted to move my list of categories over to its own separate tab, called "Index". However, when I attempt to update the formula to point over to the new tab I am receiving mix or no results.

    =OFFSET(Index!$A$2,SUMPRODUCT(--ISNUMBER(FIND(INDIRECT(Index!$D$1),B2,1))*ROW(INDIRECT(Index!$D$1)))-2,1)

    Index!$A$2 = Keyword Header
    Index!$D$1 = The reference to range for the keywords (ie A2:A14)

    Any idea where the issue is? Or need any other info to help figure this out? Nothing has changed except moving my list to a new tab.
    Last edited by dsmith616; 10-03-2021 at 12:53 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,418

    Re: INDIRECT Formula

    Please see the yellow banner at the top of the page.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: INDIRECT Formula

    this is a wild guess (as INDIRECT is a "fix" for when referencing a range on another sheet)...

    Please Login or Register  to view this content.

  4. #4
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: INDIRECT Formula

    Administrative Note:

    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. No help to be offered until this moderation request has been fulfilled.)
    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.

  5. #5
    Registered User
    Join Date
    02-13-2015
    Location
    phoenix
    MS-Off Ver
    2007/2010
    Posts
    10

    Re: INDIRECT Formula for auto categorize

    sample attached
    Attached Files Attached Files

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: INDIRECT Formula for auto categorize

    Your new title is marginally better. In the PM to you, when you asked how to improve it, I suggested that you articulate in it the issue you are having with a formula not working the same across two sheets as it does when used on one. The INDIRECT function may or may not be the reason, and is really not relevant in the title.

    I will accept your new title, but please make an effort to make your thread titles useful and descriptive in future. Thanks.

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: INDIRECT Formula for auto categorize

    Hi dsmith616 and welcome to the forum,

    I do this problem a little differently. I use an Advanced Filter on my data and put asterisks before and after my search word. See the attached where you can put "*HOA*" in the criteria cell at I2 and then do an Advanced Filter and copy it to the right range. I've also given you a sum of those bills/payments in J7. I have thousands of rows of past check and credit transactions in my data. You can have multiple "OR" transactions by putting more criteria in I3, I4 etc. Time to learn how to do Advanced Filter? See my example:
    Advanced Filter for Budget Payments.xlsx

    I've also written some VBA behind my sheet so I can automatically put the asterisks in and a do the Advanced filter. If I want a category of "Food" then I use "*Safeway*" and "*Haggens*" and etc.
    Last edited by MarvinP; 10-03-2021 at 01:47 PM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,418

    Re: INDIRECT Formula for auto categorize

    Search on the same page:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Search on the INDEX sheet:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You are better using INDEX than INDIRECT as a) INDEX is non-volatile, whereas INDIRECT is; b) INDIRECT is more complex to set up and inflexible (IMO)

  9. #9
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: INDIRECT Formula for auto categorize

    Please try

    =IFERROR(INDEX(Index!$B:$B,AGGREGATE(15,6,ROW(INDIRECT("'Index'!"&Index!$D$1))/(1/FIND(INDIRECT("'Index'!"&Index!$D$1),$B2)>0),1)),"")

    if you wish to modify from your original formula
    =OFFSET(Index!$A$2,SUMPRODUCT(--ISNUMBER(FIND(INDIRECT("'Index'!"&Index!$D$1),B2,1))*ROW(INDIRECT("'Index'!"&Index!$D$1)))-2,1)

    Regards.
    Last edited by menem; 10-03-2021 at 09:39 PM.

+ 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] My formula sumif/indirect formula is working perfect..except everything is 1 row off!
    By Nyolls in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-23-2015, 01:12 PM
  2. [SOLVED] INDIRECT Function with multiple sheets - SUMIF, INDIRECT & MATCH
    By DJDRU in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-07-2014, 08:42 AM
  3. adding Indirect formula to my current sum if array formula
    By Eastbay2 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-13-2013, 09:41 AM
  4. Sum of indirect sheet names with multiple cells (SUM, INDIRECT,SHEETNAME in cell)
    By a1b2c3d4e5f6g7h8 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-12-2013, 08:42 AM
  5. Replies: 1
    Last Post: 02-10-2012, 02:53 AM
  6. [SOLVED] Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Andy Wiggins in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 07:05 AM
  7. Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions
    By Andy Wiggins in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 06:05 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