+ Reply to Thread
Results 1 to 5 of 5

Concatenate only shows formula not result

  1. #1
    Registered User
    Join Date
    05-31-2011
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Concatenate only shows formula not result

    Hello everyone,

    I was trying to use the concatenate function to pull information from multiple cells to create an IF statement that would then return a value from another report, except it keeps displaying the IF statement instead of the value. I'm not sure how to fix this. Is it a problem with my formula?

    The reason I am using Concatenate, is because the report I'm pulling my values from changes daily. Those reports are monthly with each sheet being a Day. So I needed to locate the correct report, calucate which Day it was to grab the correct sheet and then grab the right cell.

    The formula I am trying to use is:

    =CONCATENATE("=IF('C:\Report Location\",TEXT(A10,"MMMM YYYY"),"\[",$E$1," - ",TEXT(A10,"MMMM YYYY"),".xls]",B10,"'!$C$8,'C:\Report Location\",TEXT(A10,"MMMM YYYY"),"\[",$E$1," - ",TEXT(A10,"MMMM YYYY"),".xls]",B10,"'!$C$8,","""-""",")")

    Where:
    Column A = Date (so A10 would be something like 5/6/2011)
    Column B = Day (there is a formula in column B to caluate which day of the month the date is... from Day 1 to Day 23 - we don't count weekends) (so 5/6/2011 would be Day 5)
    Row 1 = Site names (which are city names, like Miami, etc)
    C8 = the cell value I need displayed from the other report

    It displays the result:

    =IF('C:\Report Location\May 2011\[Miami - May 2011.xls]Day 5'!$C$8, 'C:\Report Location\Mat 2011\[Miami - May 2011.xls]Day 5'!$C$8,"-")

    which makes the IF statement I was looking for, but it should have either pulled the value from the other report located at C8 (which would be a number) or display a "-" to indicate no value.

    I've included a sample excel doc of what I have.

    Any help would be greatly appreciated.
    Thanks
    Attached Files Attached Files

  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,463

    Re: Concatenate only shows formula not result

    CONCATENATE produces a string, not a formula.

    You need to use INDIRECT ... but struggling to work out what it should be ;-(

    Regards
    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
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Concatenate only shows formula not result

    Build your file reference like this
    Please Login or Register  to view this content.
    Or this
    Please Login or Register  to view this content.

    Then wrap it in INDIRECT()
    Please Login or Register  to view this content.

    Then in C6 for example
    Please Login or Register  to view this content.
    Drag Across and then Down

    I have rearranged your sample a little to make it easier to read.

    Hope this helps
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Registered User
    Join Date
    05-31-2011
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Concatenate only shows formula not result

    This works. Thank you.

    My only problem now is that INDIRECT only seems to work if I have the other reports open.

    Is there a way to pull the values from other workbooks when those workbooks are closed?

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Concatenate only shows formula not result

    INDIRECT will not work with closed workbooks.

    Have a look at this link

    Daily Dose of Excel - INDIRECT and closed workbooks


    [EDIT]
    If you install Morefunc.exe from here http://download.cnet.com/Morefunc/30...-10423159.html
    Then your function in C6, using INDIRECT.EXT() becomes
    Please Login or Register  to view this content.
    This will only work if the add-in is installed on the receiving machine.
    Last edited by Marcol; 06-06-2011 at 05:30 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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