+ Reply to Thread
Results 1 to 5 of 5

My foruma won't work but I can't see why

  1. #1
    Forum Contributor heytherejem's Avatar
    Join Date
    07-06-2017
    Location
    Hampshire, England
    MS-Off Ver
    2016
    Posts
    152

    My foruma won't work but I can't see why

    Hello,

    I'm creating a very simple formula which takes cell Q11 from cell O11 and divides by 12: =(O11-Q11)/12
    Next, this formula is performed in a different sheet to the cells. So, it becomes: =('Sheet2'!O11-'Sheet2'!Q11)/12
    Finally, this formula is part of a template file which can be pasted into other files, so the document name becomes part of the formula: =('[Document.xlsx]Sheet2'!O11-'[Document.xlsx]Sheet2'!Q11)/12

    To allow the formula to point to the document it has been pasted into, I have the current file name in cell B2 and I use an INDIRECT(CONCATENATE to point to cell B2, and then add the formula

    However, although my syntax looks like it is generating the exact right text, I am getting a #VALUE! error

    Below is what I currently have, I am hoping there is something obvious and silly I have overlooked like a parenthesis...

    =INDIRECT(CONCATENATE("=('[",$B2,"]Sheet2'!O11")-CONCATENATE("'[",$B2,"]Sheet2'!Q11)/12"))

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: My foruma won't work but I can't see why

    Try it like
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,151

    Re: My foruma won't work but I can't see why

    Try

    =(INDIRECT("'["&$B2&"]Sheet2'!O11")-INDIRECT("'["&$B2&"]Sheet2'!Q11"))/12
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Forum Contributor heytherejem's Avatar
    Join Date
    07-06-2017
    Location
    Hampshire, England
    MS-Off Ver
    2016
    Posts
    152

    Re: My foruma won't work but I can't see why

    @Fluff13 you jolly well did it! Well done. I followed your steps and can see where I went wrong, I guess I should have included a second INDIRECT for a start, and the CONCAT was making it all rather messy.

    Thanks again :-)

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: My foruma won't work but I can't see why

    Glad to help, but after seeing John's post, realised that I have missed some brackets & it should be
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    otherwise it dividing Q11 by 12 1st.

+ 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. INDEX/MATCH/SUM type foruma
    By bradleyandrewdavis in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-20-2019, 12:52 PM
  2. Multiple Cell Foruma with FIND & ADD
    By xolite in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-14-2018, 08:35 PM
  3. Insert new row copies foruma one day, doesn't the next.
    By darxide23 in forum Excel General
    Replies: 5
    Last Post: 11-14-2013, 01:35 PM
  4. #NAME? In cell with correct Foruma
    By Alambique in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-20-2013, 08:02 AM
  5. Summing cells containing a text string within an array foruma
    By absintheminded in forum Excel General
    Replies: 5
    Last Post: 09-08-2010, 06:00 PM
  6. help with this foruma
    By jladika in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-15-2008, 09:20 PM
  7. Excel->Data->Validation Foruma Query
    By rahul26 in forum Excel General
    Replies: 2
    Last Post: 06-12-2008, 03:07 AM

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