+ Reply to Thread
Results 1 to 9 of 9

Need help returning column header

  1. #1
    Registered User
    Join Date
    12-10-2015
    Location
    Vietnam
    MS-Off Ver
    2010
    Posts
    5

    Need help returning column header

    I am trying to compile a list of lunch orders for my company using the below format and I would like to have summary sheet that reflects who ordered what for lunch on each day for easy reference.

    I have a separate sheet from Monday through Saturday where I record their orders and it looks something like this:

    Chicken Noodles Fried Rice w/ Beef Fried Rice w/ Egg Fried Chicken Fried Noodles Pizza Lunchbox 1 Lunchbox 2 Total Price per Person
    Price 30,000 25,000 25,000 40,000 25,000 20,000 35,000 30,000
    Name Job Title
    Alpha CEO 1 1 60,000
    Bravo COO 2 60,000
    Charlie CFO 1 30,000
    Delta GM 1 20,000
    Echo Senior Manager 1 1 60,000
    Foxtrot Manager 2 70,000
    Golf Executive 1 25,000

    Thus, what I want to achieve here is another summary sheet which allows to me know who's eating what on each day to allow for easier food distribution. I have no issues if any individual only orders 1 set per day but as it turns out, some are gluttons and would have 2 or more sets (could be either same or different) a day.

    If I'm being unclear here, please let me know and I will clarify further.

    I would really appreciate any solutions to this and I apologize for the lousy formatting of the table lol.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Need help returning column header

    How do you want your results formatted?
    Can you post an Excel sheet showing how you want them laid out?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Need help returning column header

    I don't see any date/day column in your data


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Need help returning column header

    There is one of those tables per day, I think...

  5. #5
    Registered User
    Join Date
    12-10-2015
    Location
    Vietnam
    MS-Off Ver
    2010
    Posts
    5

    Re: Need help returning column header

    This is a rough example of what I'm currently working with and the plan is to use a new workbook each week.

    I have a staff who goes out to buy the food ordered and I would like to make it easier for her to distribute the lunches.

    Hence, I wonder if there's any way to populate the "Monday (to Saturday) Orders" sheets with the required information.

    Apologies for the confusion.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-10-2015
    Location
    Vietnam
    MS-Off Ver
    2010
    Posts
    5

    Re: Need help returning column header

    bumping because I still really need help for this please.

  7. #7
    Registered User
    Join Date
    12-10-2015
    Location
    Vietnam
    MS-Off Ver
    2010
    Posts
    5

    Re: Need help returning column header

    Please help, i've been agonizing over this for a week already..

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Need help returning column header

    You can get each individual's order for each day by putting this formula in M4 on the Monday sheet:

    =IF(SUM(C4:J4)=0,"",SUBSTITUTE(IF(C4<>"",C$1&" x "&C4&", ","")&IF(D4<>"",D$1&" x "&D4&", ","")&IF(E4<>"",E$1&" x "&E4&", ","")&IF(F4<>"",F$1&" x "&F4&", ","")&IF(G4<>"",G$1&" x "&G4&", ","")&IF(H4<>"",H$1&" x "&H4&", ","")&IF(I4<>"",I$1&" x "&I4&", ","")&IF(J4<>"",J$1&" x "&J4&", ","")&"x",", x",""))

    and copying down to M10. Then you can copy the block M4:M10 into cell M4 on the other daily sheets. The attached file shows this.

    If you really want to have a separate orders sheet for each day, it is easy to just link the cells on the orders sheet to column A and column M on the appropriate daily sheet.

    Hope this helps.

    Pete
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    12-10-2015
    Location
    Vietnam
    MS-Off Ver
    2010
    Posts
    5

    Re: Need help returning column header

    I know there's no real need for a separate orders sheet each day but I'm just trying to make this whole thing as idiot-proof as possible.

    I'll try the above in my actual workbook and will come back with the results.

    Thanks, you're a life-saver Pete!

+ 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. Returning column and row header info..
    By Cotter in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-15-2013, 05:48 PM
  2. Returning Column Header Value from 2 way Lookup
    By jim97gst in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-28-2013, 10:50 PM
  3. [SOLVED] Returning all the values in a column based on the column header
    By Benisato in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2012, 11:19 AM
  4. Replies: 6
    Last Post: 10-08-2012, 10:32 AM
  5. Replies: 0
    Last Post: 09-28-2012, 07:55 AM
  6. Returning a Specific Cell's Column Header from a Row in an Array
    By zpenacho in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-25-2011, 07:29 PM
  7. Looking up row where value goes below 0 and returning column header
    By ellieg79 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-28-2009, 11:11 AM
  8. [SOLVED] Returning column header as result
    By Patricia in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-06-2006, 12:40 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