+ Reply to Thread
Results 1 to 4 of 4

IF, OFFSET formula referencing portion of another formula

  1. #1
    Registered User
    Join Date
    07-07-2017
    Location
    Vallejo, California
    MS-Off Ver
    2010
    Posts
    5

    Exclamation IF, OFFSET formula referencing portion of another formula

    Hi all,

    I'm working on a formula that will allow me to reference a portion of another formula that references another worksheet.

    What I currently have is =IF(A10>0,OFFSET((MISSING PORTION),0,7),"")

    The missing portion of my formula needs to come from A10 and the formula in A10 combines two cells in another worksheet ='[FileName.xlsx]Report 1'!D6&" "&'[FileName.xlsx]Report 1'!E6

    I need to add '[FileName.xlsx]Report 1'!E6 to the missing portion of my IF/OFFSET formula, but in a way that it will change based on which cell is referenced the end of the equations in Column A.

    Essentially I'm trying to decrease work in the Spreadsheet so that when the formula for Column A is entered, the IF/OFFSET formulas populate automatically.

    Thank you.
    Last edited by bartbartbart; 07-10-2017 at 01:15 PM. Reason: Changed Title

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,938

    Re: IF, OFFSET formula referencing portion of another formula

    You would be better off if you just described in words - and included a small example - what you have, and what you want, and how it may change.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    07-07-2017
    Location
    Vallejo, California
    MS-Off Ver
    2010
    Posts
    5

    Re: IF, OFFSET formula referencing portion of another formula

    I have two equations: In A10 ='[FileB.xlsx]Report 1'!D6&" "&'[FileB.xlsx]Report 1'!E6
    In B10 =IF(A10>0,OFFSET(________ ,0,7)

    I do not have: A reference for my OFFSET formula in B10 (The blank after OFFSET and before 0)
    I'm assuming this will have to be a function that lets me copy whatever is at the
    end of cell A10, if such a function exists.

    What the reference needs to be: I need the OFFSET to be whatever is seven columns to the right of Column E on FileB.xlsx
    However, the reference needs to change depending on what the ending of the formula in A10 is.
    So If the A10 formula ends in 'E10' the OFFSET reference needs to be E10. If the A10 formula
    ends in 'E45' the OFFSET reference needs to be E45.

    Is there a way to have the OFFSET reference use the last portion of the formula in A10?
    I cannot have =IF(A10>0,OFFSET('[FileB.xlsx]Report 1'!E6,0,7) in B10 Because the data
    changes often and will not work once the formula in A10 has a different ending.

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,938

    Re: IF, OFFSET formula referencing portion of another formula

    A lot depends on what the value in A10 actually looks like:

    =IF(A10>0,VLOOKUP(A10,'[FileB.xlsx]Report 1'!E:L,8,False),"")

    OR maybe this:

    =IF(A10>0,INDEX('[FileB.xlsx]Report 1'!L:L,ROW(INDIRECT(MID(A10,FIND(" ",A10)+1,LEN(A10))))),"")


    =IF(A10>0,VLOOKUP(MID(A10,FIND(" ",A10)+1,LEN(A10)),'[FileB.xlsx]Report 1'!E:L,8,False),"")
    Last edited by Bernie Deitrick; 07-10-2017 at 06:52 PM.

+ 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] My offset formula doesn't like referencing a cell with a formula.
    By MrOchoa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-21-2016, 01:35 PM
  2. Having trouble with macro formula referencing - offset? variable? help!
    By cljohnston64 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2015, 10:37 AM
  3. VBA code to enable offset from header portion
    By dahveedoff in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-20-2014, 04:17 PM
  4. [SOLVED] Referencing different worksheets from a list in OFFSET/MATCH formula
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-09-2014, 02:51 PM
  5. VBA insert formula referencing offset cells and anchor reference
    By JPalms in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-19-2013, 10:35 AM
  6. Replies: 1
    Last Post: 08-09-2012, 11:38 AM
  7. cut a portion of a cell's contents and paste the cut portion into the net column
    By NJEvan in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-12-2010, 05:08 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