+ Reply to Thread
Results 1 to 4 of 4

Excel 2016 / Auto populate other cells based off two different cells data

  1. #1
    Registered User
    Join Date
    07-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Exclamation Excel 2016 / Auto populate other cells based off two different cells data

    I have a sales status report in excel 2016. I am trying to accomplish below - any assistance will be greatly appreciated.

    Column B has the Dealer Code
    A01 = Is Only Retail
    A02 and on... - Each Dealer has their own code

    Column R has a Delivery Code
    G (Green)
    Y (Yellow)
    N (Orange)
    R (Red)

    Column S has the number of days until Installation
    IF B1 = "A01" and R1 = "G" Then S1 = "34"
    IF B2 = "A02" and R2 = "G" Then S2 = "32"
    If B3 = "A01" and R3 = "Y" Then S3 = "17"

    Column T has the number of days until Delivery
    IF B1 = "A01" and R1 = "G" Then S1 = "26"

    See chart below for matrix:
    Install Delivery Install Delivery Install Delivery Install Delivery
    G G Y Y O O R R
    A01 34 26 17 13 14 10 7 5
    A02 32 26 15 13 12 10 5 5

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Excel 2016 / Auto populate other cells based off two different cells data

    I would advise two sheets - one for your sales table and one for your matrix, then just use an INDEX/MATCH lookup in columns S and T to pull your data from the matrix.

    In S2, use:
    =INDEX(Matrix!$B$3:$I$4,MATCH($B2,Matrix!$A$3:$A$4,0),MATCH($R2,Matrix!$B$2:$I$2,0)+COLUMN(A:A)-1)

    Fill it right into T2, then fill down as far as you need to. See the attachment for a look at what I'm imagining:
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Excel 2016 / Auto populate other cells based off two different cells data

    This actually is working great!!! Thank you.

    So, in the matrix, what if I add additional A##?

  4. #4
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Excel 2016 / Auto populate other cells based off two different cells data

    Quote Originally Posted by jmyersnc View Post
    So, in the matrix, what if I add additional A##?
    Glad I could help! You can add additional rows to the matrix, just change all of the matrix references in the formula from $?$4 to $?$5 or whatever the new Matrix range is. If, for example, it goes to A100, then use the following in S2:

    =INDEX(Matrix!$B$3:$I$102,MATCH($B2,Matrix!$A$3:$A$102,0),MATCH($R2,Matrix!$B$2:$I$2,0)+COLUMN(A:A)-1)

    Good luck!

+ 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. Auto-Populate Cells Based on Drop Down Selection - VBA Excel
    By khabi21 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-13-2017, 05:26 PM
  2. Auto Populate A Cell Based On Data Entered into Two Possible Cells.
    By Angry Robot in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-21-2017, 02:11 AM
  3. Auto populate cell based another cells data
    By andyp24 in forum Excel General
    Replies: 2
    Last Post: 12-06-2016, 01:36 PM
  4. Auto populate cell based on another cells data
    By shapmb in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-23-2015, 09:45 PM
  5. Replies: 3
    Last Post: 04-29-2014, 03:03 PM
  6. Auto-Populate cells based on data validation and free-form entry
    By Tawana127 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-17-2013, 02:32 PM
  7. Auto-populate cells based on data from another sheet
    By tmartin1313 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-16-2011, 12: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