+ Reply to Thread
Results 1 to 13 of 13

Extract data in rows from multiple column with multiple criteria!!! WEEKDAY/ DATE/ MONTH

  1. #1
    Registered User
    Join Date
    09-24-2018
    Location
    US
    MS-Off Ver
    2010
    Posts
    17

    Lightbulb Extract data in rows from multiple column with multiple criteria!!! WEEKDAY/ DATE/ MONTH

    Dear Excel Group Members....Hello / Bonjour

    I am sure this type of QUIZ has already being solved, but putting it here as I couldnt find anything....I am attaching the quiz spreadsheet here....

    This is a vacation tracker that we currently manage manually, in this spreadsheet I have columns from A to G that has...
    1. Row-1 Week names
    2. Row 2 & 3 Week date
    3. Row 4 - 7 Emp Badge #

    Column J to L is actually in another tab, Column J is prepopulated but it would be good if it can be auto populated...I want to extract data in those columns from Column A to G.

    But the TRICK here is how it should extract the data?
    1. Emp # 6000 has vacation planned from 1-Jan-2018 to 28-Jan-2018, but it is spread from Column A to D, it should collate the first and last date and extract in Column K & L
    2. Emp # 6010, 6008, 6004, & 6006 takes vacation twice a year so the data should be extracted twice as shown from Row J2:L12 and J14:L17

    Let me know if I can explain this in a better way or this helps???

    Regards

    Chintu....
    Attached Files Attached Files

  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,004

    Re: Extract data in rows from multiple column with multiple criteria!!! WEEKDAY/ DATE/ MON

    I am a bit confused.... where do 29-31 Jan show up. As there a M,T,W, I'd expect tehm to be working days...
    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 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,004

    Re: Extract data in rows from multiple column with multiple criteria!!! WEEKDAY/ DATE/ MON

    Can we see more columns, to the right of column G... to see what patterns exist within the data?

  4. #4
    Registered User
    Join Date
    09-24-2018
    Location
    US
    MS-Off Ver
    2010
    Posts
    17

    Re: Extract data in rows from multiple column with multiple criteria!!! WEEKDAY/ DATE/ MON

    Hi Glenn,

    Thanks for the response appreciate it...below is response to your question

    1. I am a bit confused.... where do 29-31 Jan show up. As there a M,T,W, I'd expect tehm to be working days...
    Ans. I have only provided dummy data to kind of understand the pattern from week 1 and in actual spreadsheet it goes until Week 52 which is Dec 31...so columns A to G data is in one tab and Column J to L is another tab in which I want to extract the data....



    2. Can we see more columns, to the right of column G... to see what patterns exist within the data?
    Ans. As answered above the weeks go from Week-1 to Week-52 but I just provided dummy data until Week 9 only...

    Let me know if I clarified your question...and thank you for helping me out....

  5. #5
    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,004

    Re: Extract data in rows from multiple column with multiple criteria!!! WEEKDAY/ DATE/ MON

    Hi. Well.... in fact you didn't really answer either of my questions, at least not in the way that I had hoped.

    So, I have had a bash at this and have made minor changes to your data layout. How does this work?

    Both formulae are array formulae. Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    09-24-2018
    Location
    US
    MS-Off Ver
    2010
    Posts
    17

    Re: Extract data in rows from multiple column with multiple criteria!!! WEEKDAY/ DATE/ MON

    Thanks Glenn, appreciate your help very much. This spreadsheet works for me.

    Also one more thing, is it possible that I dont have to prepopulate the rows from L13:M24, it should automatically get added if the Employee is willing to take vacation in say May month?

    Thanks

    Regards

    Chintu...

  7. #7
    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,004

    Re: Extract data in rows from multiple column with multiple criteria!!! WEEKDAY/ DATE/ MON

    Yes, but... It could start to get messy. The formulae involved in that could get very complicated and hard to maintain. It's MUCH easier to copy/paste all staff numbers and change the month manually.

    Compromise.

    I have added a staff list on a sheet called... staff list. I used a named range (CTRL-F3 to edit/view) to select the active list. I then added formulae in M2 to pick up the staff numbers and in L2 to pick up the dates. So, all you have to do is select the last row of data every month (L23-O23) and drag it down as far as needed.

    Have a play with it...

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    09-24-2018
    Location
    US
    MS-Off Ver
    2010
    Posts
    17

    Re: Extract data in rows from multiple column with multiple criteria!!! WEEKDAY/ DATE/ MON

    Thanks this is really helpful....appreciate your time and effort.

    Regards

    Chintu

  9. #9
    Registered User
    Join Date
    09-24-2018
    Location
    US
    MS-Off Ver
    2010
    Posts
    17

    Lightbulb Re: Extract data in rows from multiple column with multiple criteria!!! WEEKDAY/ DATE/ MON

    Hi Glenn,

    There is a problem when I use the formula to extract the start and end date of the vacation for an Emp...the formula doesnt work when there is a situation where the vacation period is end of the current month to beginning of the next month, because may be we are referencing it to the static month or i am not sure...

    I have attached example spreadsheet that I actually use, 1st Tab is where I want to extract the vacation start and end dates and Tab 2 has the raw data...
    If you look at the example of Emp # 6010, 6029, etc highlighted in Yellow in Tab1, their data is not extracting properly, but for others it is extracting ok....
    The only change I made in your formula to extract date is that I created a drop down in Tab1 to filter the month and reference your formula to that cell as absolute reference,....

    Let me know if you need additional information

    Regards

    Chintu
    Attached Files Attached Files

  10. #10
    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,004

    Re: Extract data in rows from multiple column with multiple criteria!!! WEEKDAY/ DATE/ MON

    100,000 apologies.... I noticed this myself, corrected it (hopefully) in the formula in Post 7.... and then forgot to tell you that I had made the change. Can you check out the formula from Post 7 for the end date and get back to me if it's still faulty.

    Sorry!!!!!

  11. #11
    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,004

    Re: Extract data in rows from multiple column with multiple criteria!!! WEEKDAY/ DATE/ MON

    I see the problem... the end date formula wasn't right. Fixed. However the data started in column A this time... and started in column B last time. the way the formula is set up, it needs to start in column B. If that is an issue, I can look at it again. However, I do think that it's OK now.

    Check it out.

  12. #12
    Registered User
    Join Date
    09-24-2018
    Location
    US
    MS-Off Ver
    2010
    Posts
    17

    Re: Extract data in rows from multiple column with multiple criteria!!! WEEKDAY/ DATE/ MON

    Thanks Glenn, this works like a charm, appreciate your help

  13. #13
    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,004

    Re: Extract data in rows from multiple column with multiple criteria!!! WEEKDAY/ DATE/ MON

    Just scream if you hit any other issues....

+ 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: 5
    Last Post: 05-23-2018, 09:35 PM
  2. [SOLVED] Extract multiple data from multiple column with one criteria
    By HaroonSid in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-15-2017, 03:13 PM
  3. Formula to Sum 3 Column Values based on Multiple Criteria for Multiple Rows
    By RMerckling in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-19-2016, 07:46 PM
  4. Replies: 1
    Last Post: 04-06-2016, 07:02 AM
  5. extract rows from sheet based on multiple criteria
    By frederikk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-05-2012, 04:12 AM
  6. Extract multiple date and time values to multiple rows
    By WilliamV in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-04-2012, 08:02 AM
  7. [SOLVED] Count multiple column data by Date criteria & display the value
    By adriandefry in forum Excel General
    Replies: 7
    Last Post: 05-16-2012, 05:46 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