+ Reply to Thread
Results 1 to 7 of 7

Nested Indirect Formula

  1. #1
    Registered User
    Join Date
    10-10-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    69

    Nested Indirect Formula

    Hi there,

    I could go into a lot of detail of what's going on in my Excel doc but to keep it simple I have this formula here that works great:

    =SUM(INDIRECT("'"&TEXT(B$2,"DDMMYY")&"'!B17:BZ17"))

    at the end of the above formula it has the number 17 twice. Where it says 17 what I want to do is place the following formula:

    MATCH(A26,INDIRECT("'"&TEXT(B$2,"DDMMYY")&"'!$A$1:$A$100"))

    That above formula returns the value 17. I have tried all sorts of combinations using & symbols and different quotation marks but I just can't figure it out. I would really appreciate your help, thank you!

  2. #2
    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,939

    Re: Nested Indirect Formula

    without seeing any of your data, its hard to say, but have you tried putting that entire 2nd formula in an indirect() statement?

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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

  3. #3
    Registered User
    Join Date
    10-10-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Nested Indirect Formula

    Hi FDibbins, I considered attaching a worksheet and I normally do on this forum, however in this particular instance it would be more helpful to me and others who may come across this post in the future to not get into the details of the rest of the formula. This issue is a syntax issue of how to put a formula inside an indirect formula, the other details of the formula don't add or take away from the problem at hand. And yes I have tried just copying and pasting the formula inside the indirect formula. Thanks

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Nested Indirect Formula

    Are you saying changing the numbers 17 on the return values of the match?
    ie. if the match return 10

    =SUM(INDIRECT("'"&TEXT(B$2,"DDMMYY")&"'!B10:BZ10"))
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Nested Indirect Formula

    hi martinpgibson. like FDibbins, i think uploading a sample Excel file helps much more. otherwise, we would have trouble testing. try this though:

    Please Login or Register  to view this content.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  6. #6
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Nested Indirect Formula

    The first formula uses relative addressing, your second fomula is using absolute addressing ($) and is addressing a single row, not sure if that's the problem, but is definitely something I would look at..
    Also, the Indirect seems to be Trying to combine 2 different column references..

    A sample workbook would certainly help resolve this
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  7. #7
    Registered User
    Join Date
    10-10-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Nested Indirect Formula

    Thanks so much benishiryo, you are right on the money! Thanks for understanding what I meant, I knew I was close but you saved me hours of grief.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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