+ Reply to Thread
Results 1 to 6 of 6

Formula Help Needed - Sumifs or Index Match - Text and number formats concatenat

  1. #1
    Registered User
    Join Date
    02-07-2017
    Location
    Arizona, USA
    MS-Off Ver
    2013
    Posts
    3

    Formula Help Needed - Sumifs or Index Match - Text and number formats concatenat

    I am having trouble with w formula to setup a spreadsheet to automate the task of preparing a financial statement. The description of the problem is below.

    Concatenate:

    I provided a snapshot of the data below. I am using the following formula =CONCATENATE(A190, "."&B190, ""). I need to have a second period between the Business Unit Column data and the Object account data without inserting the period if Col 3 is blank. The reason is that the spreadsheet uses a sumifs formula to lookup data from 3 separate tabs and a value will not return if Col 5 shows 1003821.426.

    Is there a condition you can place on the concatenate formula to solve this?


    Col 1 Col2 Col3 Col4 Col5 (concatenate formula)
    Business Unit Object Account Subsidiary Account Description Acct Conc
    1003821 426 Miscellaneous Golf Revenue 1003821.426
    1003821 426 06 Golf Dues 1003821.426

    Sumifs with text and number formats:

    The spreadsheet uses a sumifs formulas to lookup data based on col 5 as appropriate from three worksheets and places the value in col 6-11. This works great using the concatenate formula above for the rows without any value in col3. However, the rows with a col3 value raw in text format while the rest of the data is number format. I have tried hard keying the acct in col5 and it still does not return a value using sumifs. Even if I convert the data values to number format, I still get a 0 in this case. Is there a different formula I can use that will work around this? Match Index perhaps? Not too familiar with the formula but read that may help.

    Unfortunately I cannot share the spreadsheet because of proprietary info. Any help is appreciated.

  2. #2
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Formula Help Needed - Sumifs or Index Match - Text and number formats concatenat

    Hi David,

    The way your sample data posted, it is impossible to work out what you're attempting.

    Try posting with CODE tabs (use the hash icon (#) - sorry that's an Aussie word, I think you call it pound).

    Regards,

    David

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Formula Help Needed - Sumifs or Index Match - Text and number formats concatenat

    Hi, welcome to the forum

    Often, a copy/paste here doesnt quite come out as expected - this is such a situation, it is hard to tell where data ends and starts

    Perhaps try to upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

    Having said that, see if you can adapt this to your needs...
    =SUBSTITUTE(TRIM(A190&" "&B190&" "&C190)," ",".")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    02-07-2017
    Location
    Arizona, USA
    MS-Off Ver
    2013
    Posts
    3

    Re: Formula Help Needed - Sumifs or Index Match - Text and number formats concatenat

    Thanks for the replies. The substitute/trim formulas worked well for my concatenate issue.

    Still have an issue with the sumifs formula.

    I have attached a small example. The data tab is pulling in info from the 3 TB by subldgr tabs. The issue is that for the accounts with the xxxxx.xxx.xx format is not capturing the info. Not sure what the deal is because I have messed with text vs number format, ect. The TB by SubLdgr worksheets are direct downloads from the financial system and must have something to do with formatting.

    Thanks again for the feedback
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Formula Help Needed - Sumifs or Index Match - Text and number formats concatenat

    Hi David,

    The problem seems to be that the Account Number that is being looked at has a number of leading blanks.

    TRIM() doesn't seem to work inside SUMIFS, so I created a helper column using TRIM() to get rid of the leading blanks, and it worked.

    Have a play, and let me know if you can solve it.

    I hope this helps, please let me know!

    Regards,

    David

    If this has been helpful
    - Please click on the *Add Reputation button at the bottom left.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Formula Help Needed - Sumifs or Index Match - Text and number formats concatenat

    Not sure if this was deliberate or a typo, but on Data2 you have ...
    =-INDEX(dataactmo, MATCH(C4, dataacct))
    Note the - after the =?
    Also, it is always best to use the 3rd argument with MATCH, to make sure you get an exact match...
    =INDEX(dataactmo, MATCH(C4, dataacct,0))

    Also, if you use the exact same headings in each sheet, you could use this for all columns in Data2...
    =INDEX(Data!$F:$K,MATCH(Data2!$C4,Data!$E:$E,0),MATCH(Data2!D$3,Data!$F$1:$K$1,0))
    copied down and across as needed (no need for all those named ranges)

    For the sum, try this....
    =SUMIFS(actmo, actacct, "*"&$E2)

+ 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 Sumifs with Index Match not working
    By vba1234 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-15-2016, 06:37 AM
  2. Need help with Sumifs, Index, and match formula!
    By relmasri in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2016, 10:27 AM
  3. Help needed! IF, SUMIFS, INDEX-MATCH or anything else???
    By muraterguden in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-18-2016, 03:11 AM
  4. [SOLVED] index match formula help needed
    By Bax in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-27-2015, 06:53 AM
  5. Replies: 2
    Last Post: 09-27-2014, 04:34 PM
  6. [SOLVED] Help needed with Index Match formula
    By WimpieOosthuizen in forum Excel General
    Replies: 4
    Last Post: 08-01-2014, 06:11 AM
  7. [SOLVED] Dynamic Array, Index & Match, SUMIFS Formula Help!
    By garrett.grillo in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-03-2014, 09:27 PM

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