+ Reply to Thread
Results 1 to 1 of 1

Macro filling only empty cells in range with formula referring to diff' file based on crit

  1. #1
    Forum Contributor
    Join Date
    12-02-2009
    Location
    Birmingham, UK
    MS-Off Ver
    2007
    Posts
    185

    Macro filling only empty cells in range with formula referring to diff' file based on crit

    Hello All,

    I am trying to understand if it is possible for a macro to insert a formula* into a cell but only if that cell is empty [meaning not holding any values].

    *formula would also need to determine to refer itself to a correct file.

    I have attached a set of 4 Files:
    1. Main File.xlsx [this is where I am working on a macro]
    2. Core S4.xlsx
    3. Core Bev.xlsx
    4. Finishing.xlsx

    the formula needs to be added to column "Q", being:
    Please Login or Register  to view this content.
    Therefore in the formula column "I" from Main File needs to determine what file to refer to.

    I do remember that I have once worked on something where a formula could determine what tab to go to based on the value of a certain cell.

    I know I could possibly do "if" formula for changing paths [file names] based on the criteria but there are few sections to check for and we are only limited to 5 "if's".

    I understand how to determine a last row I want a range to be for but not a clue how to manipulate codes to do what is described above.

    Does anyone think it is doable? Has anyone of you have ever done something like this before?

    I appreciate any help.

    Thank you in advance

    Simon
    Attached Files Attached Files
    Last edited by Ramzes; 10-02-2017 at 03:12 AM.
    ...and this is when I walk in, dressed fully in white...

+ 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: 7
    Last Post: 06-06-2015, 06:47 PM
  2. Filling Empty Cells With Value VBA in ever changing file
    By penbeacho in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-29-2015, 09:33 AM
  3. Replies: 1
    Last Post: 05-26-2014, 01:31 PM
  4. Macro for Filling the empty cells based on current date.
    By aneshdas in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 01-15-2014, 12:42 PM
  5. Macro for Filling the empty cells based on current date.
    By aneshdas in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-10-2014, 01:16 AM
  6. MACRO to empty a range of cells based on whether specified cell is empty
    By TBJV in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2013, 10:35 PM
  7. Macro for Filling First Empty Row Based on row above value
    By miners in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-19-2009, 09:51 PM

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