+ Reply to Thread
Results 1 to 7 of 7

Populate range depending on a cell

  1. #1
    Registered User
    Join Date
    03-12-2019
    Location
    Bristol
    MS-Off Ver
    10
    Posts
    10

    Populate range depending on a cell

    Hi,

    I was hoping someone could tell me how i create a list depending on a value....

    i.e. If cell A1 = 1, I want cells A2:A10 to be the same as cells C2:C10

    BUT,

    If cell A1 = 2, I want cells A2:A10 to be the same as C2:C10.

    Can anyone help?

    Thanks,

    Joe

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Populate range depending on a cell

    i.e. If cell A1 = 1, I want cells A2:A10 to be the same as cells C2:C10
    BUT,
    If cell A1 = 2, I want cells A2:A10 to be the same as C2:C10.
    Thats the same thing.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: Populate range depending on a cell

    Quote Originally Posted by JT100392 View Post
    If cell A1 = 1, I want cells A2:A10 to be the same as cells C2:C10
    BUT,
    If cell A1 = 2, I want cells A2:A10 to be the same as C2:C10.
    Are the same?
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  4. #4
    Registered User
    Join Date
    03-12-2019
    Location
    Bristol
    MS-Off Ver
    10
    Posts
    10

    Re: Populate range depending on a cell

    Sorry for the confused question i meant to put.....

    If cell A1 = 1, I want cells A2:A10 to be the same as cells C2:C10
    BUT,
    If cell A1 = 2, I want cells A2:A10 to be the same as D2:D10.

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Populate range depending on a cell

    in A2
    =IF(A$1=1,C2,D2)
    copy down as far as A10

  6. #6
    Registered User
    Join Date
    03-12-2019
    Location
    Bristol
    MS-Off Ver
    10
    Posts
    10

    Re: Populate range depending on a cell

    Thanks for your help.

    If i wanted to extend this

    ie. if A1=3 I want cells A2:A10 to be the same as cells E2:E10
    BUT,
    If cell A1 = 4, I want cells A2:A10 to be the same as F2:F10.

    Would a nested IF equation be best?

  7. #7
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Populate range depending on a cell

    No just change the formula in A2 to

    =INDEX(C2:ZZ2,1,A$1)

    Then you can go as far as column ZZ

+ 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] Help to only populate a cell depending on range.
    By jbonsignore in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-12-2018, 02:43 PM
  2. Replies: 6
    Last Post: 05-16-2014, 03:03 PM
  3. Replies: 0
    Last Post: 03-24-2014, 07:31 AM
  4. [SOLVED] Inserting IF Function and depending on answer have cell populate with another cell.
    By Rhiannon25 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-03-2013, 02:17 AM
  5. [SOLVED] IF forumla - need to populate a cell on one sheet depending on range of cells in another
    By Emma2902 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-14-2012, 07:43 AM
  6. [SOLVED] Populate Cell with Q1, Q2, Q3 or Q4 depending on date
    By SVTF in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-01-2012, 11:25 AM
  7. Populate Cells depending on criteria of other cell
    By thedaddy in forum Excel General
    Replies: 1
    Last Post: 09-05-2009, 12:42 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