+ Reply to Thread
Results 1 to 2 of 2

Repetitive formula but different workbook and different column

  1. #1
    Registered User
    Join Date
    04-26-2023
    Location
    NY, NY
    MS-Off Ver
    Office 365
    Posts
    6

    Repetitive formula but different workbook and different column

    Greetings -

    I need help writing a macro for the below formulas that I type/update on a daily basis.

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    05-09-2021
    Location
    Sweden
    MS-Off Ver
    Office 365
    Posts
    148

    Re: Repetitive formula but different workbook and different column

    Hello,

    I am not sure that I would recommend VBA and formulas the way you suggest.

    The value 05-10 could be changed to a cell reference and then you change the value in that cell.
    The change or report could possibly be solved by having a master report document where you import data daily and then keep the same reference. Is that an option?
    If not I suppose that you can also use a cell for reference..., this is what GPT says about that:


    Assuming you want to perform a VLOOKUP in a different sheet in a different file, and you want to refer to the filename in a cell, you can use the following formula:

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


    Here's an explanation of each part of the formula:

    - `lookup_value`: This is the value you want to look up in the other sheet.
    - `file_path`: This is the path to the file that contains the other sheet. You can enter the path directly into the formula, or you can reference a cell that contains the path.
    - `file_name`: This is the name of the file that contains the other sheet. You can enter the name directly into the formula, or you can reference a cell that contains the name.
    - `sheet_name`: This is the name of the sheet that contains the data you want to look up. You can enter the name directly into the formula, or you can reference a cell that contains the name.
    - `range_lookup`: This is a logical value that specifies whether you want an exact match or an approximate match. Enter `TRUE` for an approximate match or `FALSE` for an exact match.
    - `col_index_num`: This is the column number in the other sheet that contains the data you want to retrieve. For example, if the data is in the second column, enter `2`.
    - `range_lookup`: This is the range of cells in the other sheet that you want to search for the lookup value. For example, if you want to search the entire sheet, enter `A1:B100`.

    Note that the file path and file name should be enclosed in square brackets, and the sheet name should be followed by an exclamation mark.

+ 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. How to apply 'for' loop for repetitive tasks in multiple column
    By Ronith in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-08-2021, 04:14 PM
  2. How can I create a range in Column B based on repetitive values from Column A?
    By Madridic1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-10-2018, 04:19 AM
  3. I have large repetitive list in excel that I'd like to show in one column
    By surfinlakkie in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 10-28-2016, 06:46 AM
  4. repetitive pattern with column letters and numbers
    By freak11 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-31-2014, 02:35 PM
  5. Column value 1-100 and repetitive
    By VJR in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-01-2014, 08:56 AM
  6. Macro to transpose repetitive 24 entries from column to rows
    By balaji2285 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-06-2013, 07:48 AM
  7. Adding a repetitive word in all rows of a column
    By zeudoc77 in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 03-09-2012, 12:42 PM

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