+ Reply to Thread
Results 1 to 13 of 13

Copy items from dropdown list to new sheets

  1. #1
    Registered User
    Join Date
    04-13-2016
    Location
    Sydney, NSW, Australia
    MS-Off Ver
    Office 2016
    Posts
    5

    Copy items from dropdown list to new sheets

    Hi

    I need to copy items from my drop down list in sheet 1 of my workbook to other individual cells into sheet 2.

    excel drop down list.jpg

    This is where I need the individual items in my drop down list need to be reflected in the 2nd sheet. In my screenshot I have only been able to copy what ever is in sheet 1 to the same cell in sheet 2. I have circled column and name of column I need the item to show in. I have also circled the formula as well as I am confused with that as well.
    Sheet 2.jpg

    Thanks in advance

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Copy items from dropdown list to new sheets

    Remove the ' before MON in your formula and see if that works.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    04-13-2016
    Location
    Sydney, NSW, Australia
    MS-Off Ver
    Office 2016
    Posts
    5

    Re: Copy items from dropdown list to new sheets

    Thank you gmr4evr1 but unfortunately it didnt work but appreciate your time in posting something for me to try

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Copy items from dropdown list to new sheets

    Please post an Excel file showing expected outcome.

    Click "Go Advanced" then "Manage Attachments" to upload file.

  5. #5
    Registered User
    Join Date
    04-13-2016
    Location
    Sydney, NSW, Australia
    MS-Off Ver
    Office 2016
    Posts
    5

    Re: Copy items from dropdown list to new sheets

    Ok This first file shows you what I currently have.
    13 Tabs in the workbook:
    TOP, MIDDLE, BOTTOM, MON HOSP, MON VOL, TUE, HOSP, TUE VOL, WED HOSP, WED VOL, THUR HOSP, THURS VOL, FRI HOSP, FRI VOL
    The data from the cells in " TOP, MIDDLE, BOTTOM" need to be copied into corresponding cells in MON VOL, TUE VOL, WED VOL, THUR VOL, FRI VOL.
    The data from the drop down lists in each of the day/date columns for meals and dessert need to be copied into single cells in other tabs.
    Please see file named 'MEAL CHOICES 16-04-15 NEW a'

    In this 2nd file I have tried to show what cells I need copied to where. I have coloured meal cells yellow and dessert green. Hoping this helps.
    I have only worked on the tab 'MON VOL' at the moment then when its correct I can then transfer formulas to other tabs/sheets etc
    The 2nd file is called 'MEAL CHOICES 16-04-15 NEW TEST a'
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Copy items from dropdown list to new sheets

    See the attached:

    I have put formulae in "MON - VOLUNTEER" for BOTTON, MIDDLE AND TOP

    For TOP .....

    in U6

    =INDEX(INDIRECT("'" & $S$3 &"'!C4:C24"),MATCH($S6,INDIRECT("'" &$S$3 & "'!$A$2:$A$24"),0))

    in V6

    =INDEX(INDIRECT("'" & $S$3 & "'!$F$4:$O$24"),MATCH($S6,INDIRECT("'" & $S$3 &"'!$A$4:$A$24"),0),MATCH($S$1,INDIRECT("'" & $S$3 &"'!$F$2:$O$2"),0)+1)

    in X6

    =INDEX(INDIRECT("'" & $S$3 & "'!$F$4:$O$24"),MATCH($S6,INDIRECT("'" & $S$3 &"'!$A$4:$A$24"),0),MATCH($S$1,INDIRECT("'" & $S$3 &"'!$F$2:$O$2"),0))

    Nothing in column Y as it would more complex to "sort" by Main Meal

    in X5

    =COUNTIF(X6:X25,$F$4)

    in Y5

    =COUNTIF(X6:X25,$G$4)

    For BOTTOM & MIDDLE change $S$3 to $A$3 and $J$3 and $S$1 etc to $A$1


    I also "de-merged" cells: avoid merging cells - in particular if they are to be used in formulae.

    P.S Add ERROR handling to avoid N/A Errors

    =IFERROR(INDEX(INDIRECT("'" & $A$3 & "'!$F$4:$O$24"),MATCH($A6,INDIRECT("'" & $A$3 &"'!$A$4:$A$24"),0),MATCH($J$1,INDIRECT("'" & $A$3 &"'!$F$2:$O$2"),0)+1),"")
    Last edited by JohnTopley; 04-18-2016 at 02:02 PM.

  7. #7
    Registered User
    Join Date
    04-13-2016
    Location
    Sydney, NSW, Australia
    MS-Off Ver
    Office 2016
    Posts
    5

    Re: Copy items from dropdown list to new sheets

    Thank you John Topley

    Really appreciate your help

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Copy items from dropdown list to new sheets

    I have looked at this again:

    First , for Clients use your original formula

    =TOP!A6 and copy down

    For Juice, Dessert, Main Meals (in TOP) for Monday

    =VLOOKUP($A6,TOP!$A$4:$O$29,3,0)

    =VLOOKUP($A6,TOP!$A$4:$O$29,7,0)

    =VLOOKUP($A6,TOP!$A$4:$O$29,6,0)

    You will need to change the 7 and 6 to 9 and 8 for Tuesday, 11 and 10 for Wednesday etc

    A bit simpler


    I'll try and send you a complete set later.
    Last edited by JohnTopley; 04-19-2016 at 02:39 AM.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Copy items from dropdown list to new sheets

    Based on using the date to get the correct column ...

    For desserts

    =VLOOKUP($A6,TOP!$A$4:$O$29,MATCH($S$1,TOP!$A$2:$O$2,0)+1,0)

    For Main meals

    =VLOOKUP($A6,TOP!$A$4:$O$29,MATCH($S$1,TOP!$A$2:$O$2,0),0)


    Change $s$1 to $J$1 for MIDDLE and $A$1 for BOTTOM ....

    =VLOOKUP($A6,MIDDLE!$A$4:$O$29,MATCH($J$1,MIDDLE!$A$2:$O$2,0)+1,0)

    =VLOOKUP($A6,MIDDLE!$A$4:$O$29,MATCH($J$1,MIDDLE!$A$2:$O$2,0),0)


    =VLOOKUP($A6,BOTTOM!$A$4:$O$29,MATCH($A$1,BOTTOM!$A$2:$O$2,0)+1,0)

    =VLOOKUP($A6,BOTTOM!$A$4:$O$29,MATCH($A$1,BOTTOM!$A$2:$O$2,0)+1,0)

  10. #10
    Registered User
    Join Date
    04-13-2016
    Location
    Sydney, NSW, Australia
    MS-Off Ver
    Office 2016
    Posts
    5

    Re: Copy items from dropdown list to new sheets

    Hi John

    sorry have had one of those days and head not working properly.

    First , for Clients use your original formula

    =TOP!A6 and copy down
    If my clients start at =TOP!A4 will I use that instead?

    For Juice, Dessert, Main Meals (in TOP) for Monday

    =VLOOKUP($A6,TOP!$A$4:$O$29,3,0)

    =VLOOKUP($A6,TOP!$A$4:$O$29,7,0)

    =VLOOKUP($A6,TOP!$A$4:$O$29,6,0) I have placed this formula in cell for TOP Tab in worksheet. How do I get the 2 choices of meals for Monday Roast Beef and Chicken Pie to show up in the correct column in the 'MON VOLUNTEER'S' tab. When I select beef in drop down list from TOP tab under Monday, I need it to show up in the beef column in the 'Mon Volunteers' tab. When I select the Chicken Pie from same drop down list I need it to show up in the chicken pie column in 'Mon Volunteers' tab. I then need the total of beef and chicken meals for clients to total at top of each column for each meal choice.

    sorry just want to make sure I put it in the correct cell and dont make a mess of it all
    Last edited by WOODYSCHOICE; 04-19-2016 at 09:33 AM. Reason: additional information

  11. #11
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Copy items from dropdown list to new sheets

    Try

    in TOP

    In X6 : the clients in "MON - VOLUNTEER" start in A6 but the Clients in TOP start in A$4 so we LOOKUP A6 in the range A4:O29 in TOP

    .... rather confusing I know .... but formulas do not need changing

    =IF(VLOOKUP($A6,TOP!$A$4:$O$29,MATCH($S$1,TOP!$A$2:$O$2,0),0)<>F$4,"",VLOOKUP($A6,TOP!$A$4:$O$29,MATCH($S$1,TOP!$A$2:$O$2,0),0))

    in Y6

    =IF(VLOOKUP($A6,TOP!$A$4:$O$29,MATCH($S$1,TOP!$A$2:$O$2,0),0)<>G$4,"",VLOOKUP($A6,TOP!$A$4:$O$29,MATCH($S$1,TOP!$A$2:$O$2,0),0))

    The F & G can remain constant as they apply to all of BOTTOM, MIDDLE and TOP


    Previously I put all main meals in one column as I (and admittedly I don't know your business) could see little merit in having two columns, The Counts in X4 and Y4 gave the correct counts of meal. Nor did I understand why Desert/Main Meals were reversed!

    in X4

    =COUNTIF($X$6:$X$25,$F$4)

    In Y4

    =COUNTIF($Y$6:$Y$25,$G$4)
    Last edited by JohnTopley; 04-19-2016 at 11:48 AM.

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Copy items from dropdown list to new sheets

    The attached has the VLOOKUP in "MON _ VOLUNTEER" for TOP.
    Attached Files Attached Files

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Copy items from dropdown list to new sheets

    Updated file with completed "MON - VOLUNTEER" sheet. See my PM.


    I have doing some further "exploration" of the workbook:

    There are (daily) menus in "TOP" in columns U to AA in which there can be more than 2 choices.

    This means the current selection with 2 headings will "fail" if a 3rd (or more) choice is made e.g. "FROZEN" or "STEAM FISH".

    How do want to handle this? Do we have more columns for the selections in the "MON -VOL" sheet(s)?

    There is also a table for "Diabetic Client" so again how should this be handled? Perhaps a column indicating whether a Client is a Diabetic?



    I would suggest you place these tables in a separate worksheet and use Named Ranges e.g. "Monday" for Monday's menu.
    Attached Files Attached Files
    Last edited by JohnTopley; 04-20-2016 at 06:56 AM.

+ 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. Replies: 1
    Last Post: 03-18-2014, 02:19 PM
  2. Problem getting conditional formatted dropdown list items to keep their formatting in list
    By scottatbuckman in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2014, 02:39 PM
  3. [SOLVED] Hyperlinking items from a dropdown list
    By jeffery_g in forum Excel General
    Replies: 2
    Last Post: 10-01-2012, 10:59 AM
  4. Replies: 21
    Last Post: 12-02-2009, 03:27 PM
  5. Dropdown list with more than eight items
    By johnlovesbeer in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-05-2009, 08:55 AM
  6. Non-Selectable Dropdown List Items
    By therealjag in forum Excel General
    Replies: 2
    Last Post: 09-10-2009, 06:36 AM
  7. Replies: 10
    Last Post: 03-19-2007, 11:30 PM
  8. Replies: 1
    Last Post: 08-13-2005, 07:05 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