+ Reply to Thread
Results 1 to 17 of 17

How to Consolidate Data in sheet 1 into sheet 2 based on Dates

  1. #1
    Registered User
    Join Date
    12-18-2015
    Location
    Coimbatore, Tamilnadu
    MS-Off Ver
    2013
    Posts
    38

    How to Consolidate Data in sheet 1 into sheet 2 based on Dates

    Hello Guys,

    I have a list of people who send in say RFP (req fr proposal) everyday. every EOD we consolidate the request and send it to respective person. I want to track the courier details in the sep. sheet. hence I want to consolidate like below in sheet as we go by everyday..(1500 Rows may be)

    Person | Date | Count
    Person 1 | 12 Dec 15 | 2
    Person 2 | 12 Dec 15 | 2
    Person 1 | 13 Dec 15 | 1

    Is this Possible ? If so Help guide me

    Sample attached...

    I could not find any previous thread for the same..

    Here i am not combining numbers.. i am trying to combine Text and Number..I want to combine At least the Text ..help appreciated
    Attached Files Attached Files
    Last edited by jayeshk; 12-23-2015 at 03:57 AM. Reason: addedingfo

  2. #2
    Registered User
    Join Date
    12-18-2015
    Location
    Coimbatore, Tamilnadu
    MS-Off Ver
    2013
    Posts
    38

    Re: How to Consolidate Data in sheet 1 into sheet 2 based on Dates

    I could not find any previous thread for the same..

    Here i am not combining numbers.. i am trying to combine Text and Number..I want to combine At least the Text ..help appreciated

  3. #3
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,296

    Re: How to Consolidate Data in sheet 1 into sheet 2 based on Dates

    Remove duplicate all the columns and apply for calculating the amount countifs.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: How to Consolidate Data in sheet 1 into sheet 2 based on Dates

    I've added 3 helper columns to my version which can be hidden. Just note that the formulae have only been copied down 100 rows.

    It consolidates dates and names + counts occurences + places Yes or No to sent.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: How to Consolidate Data in sheet 1 into sheet 2 based on Dates

    Sorry, I just changed one of the three "11/12/2015 Rosie" lines to No and it only changed the count from 3 to 2 and didn't list the unsent line. So I've changed it very slightly to account for an unsent line on the same date as sent ones.
    Attached Files Attached Files

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How to Consolidate Data in sheet 1 into sheet 2 based on Dates

    You can summarize your data with a Pivot Table. Have your data entered into a table and create a Pivot Table from the table. Add data to the table, right click in the Pivot Table and the table is refreshed with the latest data.

    The # column in the table has a formula =MAX($A$1:A1)+1 to increment the number with each addition to the table.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  7. #7
    Registered User
    Join Date
    12-18-2015
    Location
    Coimbatore, Tamilnadu
    MS-Off Ver
    2013
    Posts
    38

    Re: How to Consolidate Data in sheet 1 into sheet 2 based on Dates

    @newdoverman... sorry Pivot is not allowed..

    @Beamernsw thanks its working... when i use the same formula in acyual data sheet.. 1st row for agent i am getting 0..and if it is same person it is not summing up and showing

    can you help

  8. #8
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: How to Consolidate Data in sheet 1 into sheet 2 based on Dates

    Does your data start on the same row as your sample? and also are the formulas on the same row?

    i.e. row 2....or do your have another heading row and your data starts on row3, or maybe no headings and your data starts on row 1.

    That's all I can think of off-hand.

    Edit: oh, I get it, that's why you have the numbers beside the date on the data tab....they represent actual row numbers.....brb

  9. #9
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: How to Consolidate Data in sheet 1 into sheet 2 based on Dates

    Actually, I can't seem to duplicate the error.

    Check A2 of Tracking and make sure that it points the the first row of data on the data tab.
    In the case of the sample......Data!B2&Data!C2&Data!D2......points to row2 because that's where the data starts.


    Edit: Actually, I did manage to duplicate the error, it happened when I had a blank row above the data for some reason.


    Edit2: OK, if that is the problem, then on the Tracking sheet:
    Cell D2: =IFERROR(INDEX(Data!B:D,MATCH(SMALL(B:B,ROW(1:1)),B:B,0)+1,1),"")
    Cell E2: =IFERROR(INDEX(Data!B:D,MATCH(SMALL(B:B,ROW(1:1)),B:B,0)+1,2),"")

    And copy those formula down as far as necessary
    Last edited by Beamernsw; 12-21-2015 at 06:45 AM.

  10. #10
    Registered User
    Join Date
    12-18-2015
    Location
    Coimbatore, Tamilnadu
    MS-Off Ver
    2013
    Posts
    38

    Re: How to Consolidate Data in sheet 1 into sheet 2 based on Dates

    i think it works from yesterday s solution i will attach the file.. please see
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    12-18-2015
    Location
    Coimbatore, Tamilnadu
    MS-Off Ver
    2013
    Posts
    38

    Re: How to Consolidate Data in sheet 1 into sheet 2 based on Dates

    AS per the new formula.. ifi paste in the above attachment.. i am getting zero in the cell D5...

    Can i email you the file i am working if it is ok for you ??

  12. #12
    Registered User
    Join Date
    12-18-2015
    Location
    Coimbatore, Tamilnadu
    MS-Off Ver
    2013
    Posts
    38

    Re: How to Consolidate Data in sheet 1 into sheet 2 based on Dates

    Can you give me ur email ?

  13. #13
    Registered User
    Join Date
    12-18-2015
    Location
    Coimbatore, Tamilnadu
    MS-Off Ver
    2013
    Posts
    38

    Re: How to Consolidate Data in sheet 1 into sheet 2 based on Dates

    Hello Sir,

    Sorry to bother you.. here is the file i am working on.. some of the sent date column goes to zero.. and icould not interpret your formula yet ( i will do it as soon as submit this) .. i have used the formula you suggested.. please take a look if i am going right...
    also

    AZ column formula is wrong.. i used If formula to sum it..

    TIA
    Last edited by jayeshk; 12-23-2015 at 03:59 AM.

  14. #14
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: How to Consolidate Data in sheet 1 into sheet 2 based on Dates

    I thought I had sent you my email through a pm..don't know what happened there.

    But I think I have it fixed for you.
    One of the zeros is because there is a date in row 27 with no other data.
    The other zero is because of the zeros in the AX column.
    Putting this next formula into B2 of the Tracking sheet and copying down should fix it.
    Cell B2: =IF(OR(COUNTIF($A$1:A1,A2)>0,A2="",A2="0"),"",COUNTIF(A:A,"<="&A2))

    OR

    It might look neater if you left the formula as it is already and place this next one in the OS sheet and copy down.
    In Cell AX2: =IF(E2="","",E2)
    Last edited by Beamernsw; 12-21-2015 at 11:25 AM.

  15. #15
    Registered User
    Join Date
    12-18-2015
    Location
    Coimbatore, Tamilnadu
    MS-Off Ver
    2013
    Posts
    38

    Re: How to Consolidate Data in sheet 1 into sheet 2 based on Dates

    @beamernsw

    THere was some problem with my browser and its popup blocker then i could not retrieve it back..

    Thanks a ton.. it works well .. i will test it thoroughly before implementing..

    I am adding reputation to you

    Note: Still i yet to interpret your formula and how it works.. i am not expert in excel so

  16. #16
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: How to Consolidate Data in sheet 1 into sheet 2 based on Dates

    Ok, this will be a bit long

    Column A simply joins the date(serial number), Anchor, & Sent into a single text string.

    Column B provides a number to sort the exact combination of date,name,sent
    B10: =IF(OR(COUNTIF($A$1:A9,A10)>0,A10=""),"",COUNTIF(A:A,"<="&A10))
    The first part IF(OR(COUNTIF($A$1:A9,A10)>0,A10=""),"" counts how many times the value in A10 occurs in the cells above (A1:A9)
    If any are found (>0) or if A10 is blank then it leaves B10 blank ("")
    Now, if it didn't find any occurances above, then the second part kicks in COUNTIF(A:A,"<="&A10)
    This then counts of how many cells in column A (A:A) are less than or equal to the value in A10
    In the sample I have, B10 is 358. That means there are 358 cells that are either the same as cell A10 or alphabetically less

    Column C counts how many times Sent=Yes for the same person on the same date.
    I simplified the formula since last time to:
    Cell C2: =IF(B2="","",IF(RIGHT(A2,3)="Yes",COUNTIF(A:A,A2),0))
    It says that if B2 is blank, leave it blank. Then if B2 ends with "Yes" then count how many times it occurs. If it doesn't end with "Yes" then 0.

    Column D grabs the dates from OS!AW
    Cell D1: =IFERROR(INDEX(OS!AW:AX,MATCH(SMALL(B:B,ROW(1:1)),B:B,0),1),"")
    IFERROR(….,"") simply leaves the cell blank if there are any errors.
    Now, working from the inside out….. ROW(1:1) simply gives the answer 1. But as its copied down it increases to 2,3,4,5..etc
    SMALL(B:B,ROW(1:1)) or SMALL(B:B,1) finds the 1st smallest number from column B.
    SMALL(B:B,ROW(5:5)) or SMALL(B:B,5) finds the 5th smallest number from column B…..etc
    On my sample workbook, the 1st smallest number is 350.
    So, MATCH(SMALL(B:B,ROW(1:1)),B:B,0) is the same as MATCH(350,B:B,0).
    Match is looking down column B to find the first row that has 350 in it. (In my case Row 2).
    So now we have, INDEX(OS!AW:AX,2,1)
    INDEX is a grid (in this case all of columns AW:AX in the OS sheet) and it grabs the 2nd row of the 1st column (2,1).

    Column E is the same except it grabs the 2nd column
    E2: =INDEX(OS!AW:AX,2,2) In my case

    Column F is the same thing except the grid is column C of the tracking sheet.
    F2: =INDEX(C:C,2,1) In my case

    Column G simply leaves the cell blank or puts "Yes" or "No" based on Column F
    G2: =IF(F2="","",IF(F2>0,"Yes","No"))

  17. #17
    Registered User
    Join Date
    12-18-2015
    Location
    Coimbatore, Tamilnadu
    MS-Off Ver
    2013
    Posts
    38

    Re: How to Consolidate Data in sheet 1 into sheet 2 based on Dates

    Thank you so much for your patience explaining it to me....

    Much Appreciated



    Thanks a ton to New South Wales from Tamil Nadu South India

+ 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. How to Consolidate Data in sheet 1 into sheet 2 based on Dates
    By jayeshk in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-19-2015, 06:11 AM
  2. copy data from one sheet to another based on dates
    By forquaidian in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-31-2015, 08:52 AM
  3. [SOLVED] Consolidate Data from 1 Range on 1 Sheet in Multiple Workbooks to Master Workbook Sheet
    By Jennasis in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-10-2013, 06:11 AM
  4. [SOLVED] Consolidate data from multiple sheet to one sheet
    By kesavanprabhu in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-27-2013, 10:30 AM
  5. Help Transferring Data from one sheet to Another Based on Dates
    By da1nonlybige in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-14-2013, 11:04 AM
  6. As user fills out data sheet, then fill out a results sheet based on data sheet entry
    By clemsoncooz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-13-2012, 03:57 PM
  7. Kindly assist to consolidate data from raw data sheet to report sheet
    By ejima in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-30-2012, 10:11 AM

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