+ Reply to Thread
Results 1 to 4 of 4

Dynamic if/then statement/vlookup formula.

  1. #1
    Registered User
    Join Date
    06-24-2016
    Location
    USA
    MS-Off Ver
    Excel for MAC Office 365
    Posts
    18

    Dynamic if/then statement/vlookup formula.

    I have 1500 records that I need to assign new sub-ids. The sub-ids are located on sheet 2, cell A1 through A30.
    *Only 50 records can be related to each unique sub-id.*

    I hope use a formula that will insert the sub-id from sheet2 cell A1 in sheet 1 cell C1-C50, Sheet2 Cell A2 in Sheet1 cell C51-C100 etc...
    Basically, I need the formula to insert the next sud-id after every 50 rows.

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Dynamic if/then statement/vlookup formula.

    Try this in C2: =INDEX('Sheet2'!$A$1:$A$30,ROUNDUP(ROW()/50,0))

  3. #3
    Registered User
    Join Date
    06-24-2016
    Location
    USA
    MS-Off Ver
    Excel for MAC Office 365
    Posts
    18

    Re: Dynamic if/then statement/vlookup formula.

    that worked perfectly. If you don't mind will explain how the function works. I am always interested in the how and why?

  4. #4
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Dynamic if/then statement/vlookup formula.

    Row function takes the first value found in Index and divides it by 50, meaning that the first value found will be added to first rows, and then it takes the second one and add it for next 50 rows, and so on.

+ 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. Dynamic Formula for 2 column logic statement
    By markySanpedro in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-12-2017, 05:12 AM
  2. Help with a Vlookup/IF statement formula
    By relmasri in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-24-2016, 09:24 AM
  3. [SOLVED] Add ‘If’ statement to Vlookup formula
    By robertguy in forum Excel General
    Replies: 2
    Last Post: 04-16-2015, 09:30 AM
  4. [SOLVED] VLookup Formula along with If statement ???
    By Amigo1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-05-2014, 08:00 AM
  5. If Statement, Vlookup & Formula's
    By rgill84 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-04-2014, 01:44 PM
  6. VLookup formula (how to make it dynamic) in vba
    By david1816 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-26-2012, 10:10 AM
  7. Dynamic VLOOKUP formula
    By andrewc in forum Excel General
    Replies: 1
    Last Post: 09-14-2012, 04: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