+ Reply to Thread
Results 1 to 4 of 4

Pulling cell reference into a formula

  1. #1
    Registered User
    Join Date
    06-07-2016
    Location
    Richmond, VA
    MS-Off Ver
    365 Apps for business
    Posts
    82

    Pulling cell reference into a formula

    How do I pull a cell reference into a formula?

    In the attached, I'm returning the cell reference into cell D4.

    I have a formula in C10 that I want to drop this reference into. It needs to dynamically drop into the section at the end that I've highlighted.

    =IF(A10<(TODAY()),"",IFERROR(IF(A10<(TODAY()),"",IF(A9>(TODAY()),C9,(FORECAST.ETS(A9,$B$9:B10,$A$9:A10)))),""))

    What syntax do I need for that?
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: Pulling cell reference into a formula

    You can use this in C10:

    =IF(A10<(TODAY()),"",IFERROR(IF(A10<(TODAY()),"",IF(A9>(TODAY()),C9,(FORECAST.ETS(A9,$B$9:B10,INDIRECT(D4&":A10"))))),""))

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    06-07-2016
    Location
    Richmond, VA
    MS-Off Ver
    365 Apps for business
    Posts
    82

    Re: Pulling cell reference into a formula

    Thank you. That gets me part of the way there.

    Is there a way to have the "A10" part of the formula remain as a dynamic cell reference, so that if I drag that formula down the column A10 becomes A11, A12, A13 etc.?

    =IF(A10<(TODAY()),"",IFERROR(IF(A10<(TODAY()),"",IF(A9>(TODAY()),C9,(FORECAST.ETS(A9,$B$9:B10,INDIRECT(D4&":A10"))))),""))

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,852

    Re: Pulling cell reference into a formula

    As it stands, it is inside quotes and that means it is treated as a text string when it is copied down. You need to put the row part outside the quotes and to have it change when copied down - here's one way to do that:

    =IF(A10<(TODAY()),"",IFERROR(IF(A10<(TODAY()),"",IF(A9>(TODAY()),C9,(FORECAST.ETS(A9,$B$9:B10,INDIRECT(D4&":A"&ROWS($1:10)))))),""))

    Hope this helps.

    Pete

+ 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. Replies: 3
    Last Post: 03-22-2021, 10:21 AM
  2. Excel: Can excel reference a cell pulling data in another formula?
    By KibbsGuru in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-25-2019, 04:10 AM
  3. [SOLVED] Pulling Down array Formula - Need To Change absolute reference
    By chullan88 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-29-2016, 08:42 AM
  4. Pulling Data using single entry reference cell
    By jcri227 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-09-2015, 12:00 PM
  5. Pulling cell reference from all workbooks in a folder
    By lunitarri in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-10-2012, 06:59 PM
  6. [SOLVED] Code to reference cell as parameter when pulling data
    By jaimealvarez in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-26-2012, 09:58 AM
  7. [SOLVED] pulling from 'line' inside cell- best way to reference in VBA?
    By KR in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2006, 11:15 AM

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