+ Reply to Thread
Results 1 to 19 of 19

Change Drop downs to populate multiple values into other cells or return a value of 0

  1. #1
    Registered User
    Join Date
    11-12-2016
    Location
    Carlsbad NM
    MS-Off Ver
    2010
    Posts
    10

    Cool Change Drop downs to populate multiple values into other cells or return a value of 0

    Hi Everyone,

    I have a spread sheet with a drop down menu that has 9 texts in it, we'll just use FMSS in cell (N4) as an example of one of them.

    I have a value in another column that returns a salary value in cell (O4).

    My problem is that I need to break out the salaries into the other categories (FMSS, PQ34, Water, Electricity, etc.) that have separate columns and then add them up for each column using the value in cells (O4 though O55) .

    I also need to have the columns cells left with a (0) if the cell in that column does not match the code from the drop down menu in (N4).

    They need to be dynamic so that when I change the drop down, the incorrect column goes to (0) and the correct column is populated with the correct salary from the correct cell (O4 through O55).

    I tried to use a table and Vlookup, but that didn't work.

    Any suggestions?
    Attached Files Attached Files
    Last edited by Keith Brink; 11-12-2016 at 09:55 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Change Drop downs to populate multiple values into other cells or return a value of 0

    Hi,

    It sounds like you have a lot going. My first suggestion would be to provide a sanitized "working" example of your file. Please don't provide one that just has parts, only to find out later that something doesn't work because the whole picture wasn't provided. "No!!!" don't provide a picture. LOL.

    I'll be happy to look at what you provide and hopefully help you find a working solution.

    Cheers

  3. #3
    Registered User
    Join Date
    11-12-2016
    Location
    Carlsbad NM
    MS-Off Ver
    2010
    Posts
    10

    Re: Change Drop downs to populate multiple values into other cells or return a value of 0

    It's uploaded. I think I have some of it fixed, but not sure. It still reports N/A instead of (0). I've hightlighted the cells to look at in Yellow on the FTE sheet and the data sheet.

    Thanks

  4. #4
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Change Drop downs to populate multiple values into other cells or return a value of 0

    I am not sure what you did wrong, but the file isn't uploaded.

  5. #5
    Registered User
    Join Date
    11-12-2016
    Location
    Carlsbad NM
    MS-Off Ver
    2010
    Posts
    10

    Re: Change Drop downs to populate multiple values into other cells or return a value of 0

    Forgot to Save after uploading. Here it is.

  6. #6
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Change Drop downs to populate multiple values into other cells or return a value of 0

    Hi,

    What is the criteria you are using to the values in DATA Sheet columns R:CI?
    From the looks of it they are just transposed numbers from FTE Calculator column O.
    Then at cell Q5 (50/50 Water/Electric) you divide by 2.

    What is the reasoning behind coping the data over to another sheet, dividing by 2 and then bringing it back?

  7. #7
    Registered User
    Join Date
    11-12-2016
    Location
    Carlsbad NM
    MS-Off Ver
    2010
    Posts
    10

    Re: Change Drop downs to populate multiple values into other cells or return a value of 0

    We program some of the peoples salaries 50/50 between PQ34 and SQ34 as well as Water and Electricity, that is why I divided by 2. So I need to be able to populate each column (PQ34 & SQ34) with half of their salary if I select "50/50 PQ34-SQ34" in the drop down.

    Yes I transposed the numbers so I could use VLookup. Is there an easier way?

  8. #8
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Change Drop downs to populate multiple values into other cells or return a value of 0

    Can't you do the math on the FTE Calculator page? For example cell S4 = O4/2

  9. #9
    Registered User
    Join Date
    11-12-2016
    Location
    Carlsbad NM
    MS-Off Ver
    2010
    Posts
    10

    Re: Change Drop downs to populate multiple values into other cells or return a value of 0

    The Chief wants to be able to play around with positions in the Drop down (Column N) as well as the Pay Grades (Column G). So when he makes a change in either or both of these dropdowns I need them to populated the appropriate Column Q thruogh W. Then I need all the columns to autosum in Row 2.

  10. #10
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Change Drop downs to populate multiple values into other cells or return a value of 0

    What is the relationship between Column N and Q through W?

    If N4 is changed to FMSS what are the expected results in Q through W?
    What is expected when a cell in Column N is changed to:

    FO1Z
    FM1Z
    Water 0150
    Electricity 0153
    50/50 Water/Electric
    Housing PQ34
    Housing SQ34
    50/50 PQ34-SQ34
    Cyclic

    Give me some examples so I can better understand what you need.

    Cheers

  11. #11
    Registered User
    Join Date
    11-12-2016
    Location
    Carlsbad NM
    MS-Off Ver
    2010
    Posts
    10

    Re: Change Drop downs to populate multiple values into other cells or return a value of 0

    If I change it to FMSS I want FMSS Column W to populate from column O and all the others in that row to change to 0. Same with all the others FO1Z populate column Q and the other columns in that row go to 0.
    Change the 2 50/50 dropdowns and then Populate either 50% Column S row and 50% Column T row for 50/50 Water/Electric or 50% PQ34 Column U and 50% SQ34 for 50/50 PQ34-SQ34.
    Last edited by Keith Brink; 11-14-2016 at 12:43 PM.

  12. #12
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Change Drop downs to populate multiple values into other cells or return a value of 0

    OK. With regard to excel you have to be exact with relationships.

    Trying to follow your logic I created an array on the DATA Sheet. It is highlighted in blue.

    Hopefully this will give you an idea of how to use something like this in your calculator.

    The formulas in columns Q:W multiply the Column O value with the 1 or 0.5 in the Data Sheet blue array.

    See the attached example:

    Hope this makes sense and is helpful.

    Cheers
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    11-12-2016
    Location
    Carlsbad NM
    MS-Off Ver
    2010
    Posts
    10

    Re: Change Drop downs to populate multiple values into other cells or return a value of 0

    Perfect. Thanks for all you hard work on this. I don't understand it, but it works just like I wanted.

    Thanks again.

  14. #14
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Change Drop downs to populate multiple values into other cells or return a value of 0

    Glad I could be of some assistance.

    Cheers

  15. #15
    Registered User
    Join Date
    11-12-2016
    Location
    Carlsbad NM
    MS-Off Ver
    2010
    Posts
    10

    Re: Change Drop downs to populate multiple values into other cells or return a value of 0

    Hi Southward,

    Just need a little more help. Reference new attached "Sanitized Facilities Master Schedules vs 2 Part 2". Cyclic drop down was populating the FMSS column, so I added a Cyclic Column as well as a new one RABR. It also appears the Water and Electric are not populating correctly now. I changed the names for the Water and Electric on the DATA sheet, did this have an affect on the formulas?

    I have highlighted in Green where I would like the spreadsheet to populate it when the Drop down menu is changed and in Red where it is incorrectly hitting.

    Thanks for all your assistance.
    Last edited by Keith Brink; 11-16-2016 at 12:58 AM.

  16. #16
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Change Drop downs to populate multiple values into other cells or return a value of 0

    Hi,

    Yes, changing names and adding new columns without updating the formulas will cause errors.

    To reduce confusion I cleaned up the data area on the DATA Sheet.

    If you add rows and columns to the DATA Sheet range, the formulas in the FTE Calculator will need to be updated.

    See attached file with the corrections.

    Cheers

  17. #17
    Registered User
    Join Date
    11-12-2016
    Location
    Carlsbad NM
    MS-Off Ver
    2010
    Posts
    10

    Re: Change Drop downs to populate multiple values into other cells or return a value of 0

    Hi Again,

    I need just a few things fixed.

    1. I need columns X & Y populated with the code from columns Q-W.
    2. I need all rows down to Row 66 populated with the code for columns Q-Y.

    I tried to copy them over but that didn't work.

    Thanks again

  18. #18
    Registered User
    Join Date
    11-12-2016
    Location
    Carlsbad NM
    MS-Off Ver
    2010
    Posts
    10

    Re: Change Drop downs to populate multiple values into other cells or return a value of 0

    Acutually could you add down to row 85 for columns Q-Y. I will fix all the new positions, just need the code for now.

    Thanks,

  19. #19
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Change Drop downs to populate multiple values into other cells or return a value of 0

    Hi,

    Here is the formula:

    Please Login or Register  to view this content.
    Just enter it in Q4, copy across and down.

    Cheers

+ 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. Populate cells based on drop downs and quantity
    By avozella in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2015, 10:06 PM
  2. Create drop downs with multiple dependent cells
    By usurrao in forum Excel General
    Replies: 2
    Last Post: 09-22-2014, 05:45 AM
  3. Macro to populate the tables from Pivots, when values are selected from drop downs.
    By pavan5183 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2013, 10:42 AM
  4. Replies: 0
    Last Post: 04-11-2013, 10:44 AM
  5. Replies: 17
    Last Post: 02-05-2013, 08:20 PM
  6. Multiple drop dependant drop downs in single cell
    By LittleJerry in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-07-2012, 02:21 PM
  7. Use Drop Downs to Populate Other Drop Downs
    By fbombs in forum Excel General
    Replies: 2
    Last Post: 09-23-2009, 03:17 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