+ Reply to Thread
Results 1 to 13 of 13

combining functions

  1. #1
    Registered User
    Join Date
    12-23-2015
    Location
    califoria,unitedstates
    MS-Off Ver
    2013
    Posts
    6

    combining functions

    hello all, looking to combine indirect and sum functions. i'm pulling data from multiple sheets and will need that total sheet to be able to chance with the drop down list. normally all that would need would be the indirect function. but the part that's stumping me is the sum function that's needed as well. right now my cells look like this =SUM(Vendor2014!D258:Vendor2014!D260) but as you can see that limits it to only the "2014" page as i have pages extending up to 2020 i need those totals to adjust as well. i thought at first the formula would look like this =sum(indirect("'&B3&"'!D258:"'&B3&"'D260)) then tried =sum(indirect("'&B3&"'!D258":Vendor2014!D260)) im sure this is an easy one but i cant figure this out. anyone have an idea?

    Thanks

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,938

    Re: combining functions

    Try this:
    Please Login or Register  to view this content.
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    12-23-2015
    Location
    califoria,unitedstates
    MS-Off Ver
    2013
    Posts
    6

    Re: combining functions

    Thanks but no that will give the the sum total of all the sheets yes but i need the sums to coincide with the drop down box thank you but this wont work.

  4. #4
    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
    53,048

    Re: combining functions

    For a start, that formula does not seem right...
    =SUM(Vendor2014!D258:Vendor2014!D260)
    That (I would think) would look something like =SUM(Vendor2014!D258:D260)
    Try this...
    =SUM(indirect("'Vendor"&B3&"'!D258:D260"))
    with the year being in B3

    If that does not work for you, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    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

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,938

    Re: combining functions

    Borrowing from this thread: http://www.excelforum.com/excel-gene...le-sheets.html
    I modified to (hopefully) work with your criteria:
    Please Login or Register  to view this content.
    The formula assumes that the names of the first and last sheets to be accessed are in C1 and C2.
    Let me know if you have any questions.

  6. #6
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: combining functions

    for one sheet:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    for 2 sheets:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    for 3 sheets:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    keep adding as more INDIRECTS as needed.

  7. #7
    Registered User
    Join Date
    12-23-2015
    Location
    califoria,unitedstates
    MS-Off Ver
    2013
    Posts
    6

    Re: combining functions

    this worked perfectly thank you! now to fix the hundreds of cells lol

  8. #8
    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
    53,048

    Re: combining functions

    Quote Originally Posted by keinia View Post
    this worked perfectly thank you! now to fix the hundreds of cells lol
    Which 1 worked for you? (just curious)

  9. #9
    Registered User
    Join Date
    12-23-2015
    Location
    califoria,unitedstates
    MS-Off Ver
    2013
    Posts
    6

    Re: combining functions

    this worked perfectly! thank you so much!

  10. #10
    Registered User
    Join Date
    12-23-2015
    Location
    califoria,unitedstates
    MS-Off Ver
    2013
    Posts
    6

    Re: combining functions

    keeps throwing it on the bottom lol yours did FDibbins, along with the formula change, for some reason it was working with the original string i was using before but yours is cleaner and the indirect worked like a charm, just had to modify for the full sheet name but worked perfectly

  11. #11
    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
    53,048

    Re: combining functions

    Thanks, Im just happy you got it workling

  12. #12
    Registered User
    Join Date
    12-23-2015
    Location
    califoria,unitedstates
    MS-Off Ver
    2013
    Posts
    6

    Re: combining functions

    thanks again!

  13. #13
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: combining functions

    Happy to learn that it worked for you. Please mark the thread as SOLVED and do consider appreciating FDibbins and JeteMC for their effort and contributions.

+ 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. Combining Two Functions
    By PKW57 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-30-2015, 04:03 PM
  2. Combining 3 IF functions
    By Attrition in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-24-2013, 12:46 AM
  3. Combining 3 IF functions
    By Attrition in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-24-2013, 12:33 AM
  4. Combining multiple functions>lookup/sum functions
    By mush106 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-22-2013, 07:47 AM
  5. Combining If & And functions
    By marielav99 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-27-2010, 10:30 AM
  6. Combining IF & AND functions
    By Khoshravan in forum Excel General
    Replies: 1
    Last Post: 08-04-2006, 12:16 AM
  7. [SOLVED] Combining functions
    By Steve in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-31-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