+ Reply to Thread
Results 1 to 6 of 6

Auto populate cells based on drop down list selection

  1. #1
    Registered User
    Join Date
    11-17-2020
    Location
    Frankfort, KY
    MS-Off Ver
    365, 2013
    Posts
    6

    Auto populate cells based on drop down list selection

    I'm trying to auto populate sample numbers from one location based on the selection of a drop down list in another location.

    See attached: in the MONDAY group (X4:AG21), I want to have sample numbers populate for Ditch #1, #2, and #3 (AA12:AA14) when the drop down under Ditches (AG7) is set to YES. These numbers would pull from D11:D13. Is that possible?

    Any help is appreciated!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,583

    Re: Auto populate cells based on drop down list selection

    In AA9 copied down

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Registered User
    Join Date
    11-17-2020
    Location
    Frankfort, KY
    MS-Off Ver
    365, 2013
    Posts
    6

    Re: Auto populate cells based on drop down list selection

    Thank you for the quick response! I've edited the sheet a bit since adding your suggestion to make the sample numbers list in B7:B21 match the analyte list in Y6:Y21. Please see the new attachment.

    It seems to work well, except that I'm getting 0's in AA17:AA21. Why is that?

    Also, with the info in B4:I21 - we don't run those tests every day, hence the yes/no drop down lists in AG. Is there a way to make those numbers auto populate in C12:I21 based on the selection of the drop downs in AG? For example, on Mondays, if I select Yes on the ditches in AG7, I would want the numbers in D12:D21 to be the next in the sequence from those in D7:D11. Does that make sense?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-15-2021
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    34

    Re: Auto populate cells based on drop down list selection

    Quote Originally Posted by NiesahClark View Post
    Thank you for the quick response! I've edited the sheet a bit since adding your suggestion to make the sample numbers list in B7:B21 match the analyte list in Y6:Y21. Please see the new attachment.

    It seems to work well, except that I'm getting 0's in AA17:AA21. Why is that?

    Also, with the info in B4:I21 - we don't run those tests every day, hence the yes/no drop down lists in AG. Is there a way to make those numbers auto populate in C12:I21 based on the selection of the drop downs in AG? For example, on Mondays, if I select Yes on the ditches in AG7, I would want the numbers in D12:D21 to be the next in the sequence from those in D7:D11. Does that make sense?
    You had the formula in AA17-21 and the rows its referencing have 0's in it as a value because they are blank.

    =IF($AG$7="Yes",D12,"None")

    Idk what he was trying to do but he was overcomplicating things.

    The main issue with these drop down menus is they do not clear when re selecting an option. So you HAVE to clear the value in AG7 when selecting a new option otherwise it will mess up. This can be fixed by adding a worksheet VBA code that deletes the value whenever you add a new one.

    I do not understand part 2.
    Last edited by Zaerick; 06-15-2021 at 11:52 AM.

  5. #5
    Registered User
    Join Date
    11-17-2020
    Location
    Frankfort, KY
    MS-Off Ver
    365, 2013
    Posts
    6

    Re: Auto populate cells based on drop down list selection

    Thanks for the response! Yeah, the second part is confusing. Let me try again:

    * In B7:I21, I want these numbers to auto populate based on a drop down, or even based on a cell having a character in it to designate that that sample was taken that day.
    -----Example: For column D (in the 2nd attachment), the first sample taken for the day is the influent, which is formatted as yymmdd"PT01" (based on date in D6), the next one down is the effluent, and is formatted as yymmdd"PT02". You can see that there are no entries in D9:D11 for pH, E.coli, or Clarifier 3; so D12 (Ditch 1) picks up with "PT03".
    -----I probably need to designate which sample is taken each day, and then have the column fill the sample numbers in the format mentioned above, which is based on the dates in row 6. If the sample is not taken that day, I need the formula to skip those cells and pick up the series with the next populated cell going down the column. Is that a little clearer?
    -----I want the cells in AA6:AA21 to populate based on the data in D7:D21.

    * I would also like the cells in AF6:AF21 to populate based on the cells being populated in AA.
    -----Example: If there is an entry that populates in AA6, I want AF6 to populate a specific text, in the case of MONDAY - TSS, NH3. For Rows 6 and 7, the analytes in AF for influent and effluent will differ based on the day. I will eventually copy these formulas into the groups below (Y24:AF39, Y42:AF57, etc.), so the day will change the tests run on the influent and effluent. All the other tests always have the same analytes regardless of the day. So if there is a number that populates in the cell for pH, the analyte listed in AF will always be pH; E.coli will always populate Total Coliform, E.coli; etc.
    -----Is there a formula I can use to accomplish this?

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,583

    Re: Auto populate cells based on drop down list selection

    The needs are many and slightly difficult to follow, what actually required. so let us see one by one.
    To fill column D conditions are given. ie for 14/6 . How the particular date is selected. I feel column to be selected depending on date. How date is selected.
    What about other columns C to I.

+ 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] Auto populate cells based on a drop down list selection
    By Ronald Reagan in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-10-2020, 05:14 PM
  2. 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
  3. [SOLVED] Auto-populate cells based on drop down list selection
    By sh1483 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-01-2016, 11:59 PM
  4. Auto Populate cells based on Drop-down selection
    By stepzuko in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-11-2014, 03:02 PM
  5. Replies: 3
    Last Post: 02-28-2012, 11:54 AM
  6. auto populate multiple cells based on a list selection
    By ikautzman in forum Excel General
    Replies: 3
    Last Post: 06-26-2009, 10:09 AM
  7. [SOLVED] Auto populate several cells based on a selection from drop down li
    By Sheldon in forum Excel General
    Replies: 3
    Last Post: 01-13-2006, 04:30 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