+ Reply to Thread
Results 1 to 14 of 14

data positioning with respect to date and name

  1. #1
    Registered User
    Join Date
    11-17-2018
    Location
    pakistan
    MS-Off Ver
    office 2016
    Posts
    32

    data positioning with respect to date and name

    Dear All,

    I am trying to bring data in a form that requires to copy and paste data to the corresponding years and name. The original data file has some years missing which i need to mention blank in Required Data set. As well as some data values are not required specifically named with Divn. Please have a look at the attached sheet and help me out to resolve this issue. The first sheet named "Data" has the original data and required data sheet is the way i want it to be. i have done for the first cohort manually.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,914

    Re: data positioning with respect to date and name

    So all we are doing is copying the data with certain columns removed - is this it?

    If so, load the source table into PowerQuery, remove the unnecessary columns and close and load to a different worksheet.
    Last edited by AliGW; 04-12-2019 at 07:31 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-17-2018
    Location
    pakistan
    MS-Off Ver
    office 2016
    Posts
    32

    Re: data positioning with respect to date and name

    No we are adding columns for some missing years for each cohort and in total they are 63 of them and addition of minimum 8 coulms or some cohorts and for others its 25 columns or years.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,914

    Re: data positioning with respect to date and name

    Columns? Do you mean rows? Just add the missing years to the bottom and then sort the data by the year column.

  5. #5
    Registered User
    Join Date
    11-17-2018
    Location
    pakistan
    MS-Off Ver
    office 2016
    Posts
    32

    Re: data positioning with respect to date and name

    yes rows really sorry

  6. #6
    Registered User
    Join Date
    11-17-2018
    Location
    pakistan
    MS-Off Ver
    office 2016
    Posts
    32

    Re: data positioning with respect to date and name

    I have attached a sample file. please have a look at the required data sheet as i have to do this for all 63 cohorts adding years manually and then sorting it requires alot of time. Using a Formula or method by which i can link values in sheet named "data" to sheet named required data w . r . t corresponding name and year will reslove my issue.
    I know little about excel.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,914

    Re: data positioning with respect to date and name

    Try this:

    =IFNA(LOOKUP(2,1/((Data!$A$2:$A$2315=A2)*(Data!$B$2:$B$2315=B2)*(Data!$C$2:$C$2315=C2)*(Data!$D$2:$D$2315=D2)),Data!E$2:E$2315),"")

    or:

    =IFERROR(1/(1/LOOKUP(2,1/((Data!$A$2:$A$2315=A2)*(Data!$B$2:$B$2315=B2)*(Data!$C$2:$C$2315=C2)*(Data!$D$2:$D$2315=D2)),Data!E$2:E$2315)),"")

  8. #8
    Registered User
    Join Date
    11-17-2018
    Location
    pakistan
    MS-Off Ver
    office 2016
    Posts
    32

    Re: data positioning with respect to date and name

    oh thanks, i will try and update about it.

  9. #9
    Registered User
    Join Date
    11-17-2018
    Location
    pakistan
    MS-Off Ver
    office 2016
    Posts
    32

    Re: data positioning with respect to date and name

    I have tried both but there is a problem these formulas are only giving values fro intital years but not for the latter years, it would be kind of yours if you can apply them and see if i am wrong or oherwise.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,914

    Re: data positioning with respect to date and name

    Sorry - try this:

    =IFNA(LOOKUP(2,1/((Data!$A$2:$A$2315=$A2)*(Data!$B$2:$B$2315=$B2)*(Data!$C$2:$C$2315=$C2)*(Data!$D$2:$D$2315=$D2)),Data!E$2:E$2315),"")

    or this:

    =IFERROR(1/1/LOOKUP(2,1/((Data!$A$2:$A$2315=$A2)*(Data!$B$2:$B$2315=$B2)*(Data!$C$2:$C$2315=$C2)*(Data!$D$2:$D$2315=$D2)),Data!E$2:E$2315)),"")

  11. #11
    Registered User
    Join Date
    11-17-2018
    Location
    pakistan
    MS-Off Ver
    office 2016
    Posts
    32

    Re: data positioning with respect to date and name

    Dear AliGW it is working only for the first 4 after that its not working. Please have a look
    Attached Files Attached Files

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,914

    Re: data positioning with respect to date and name

    That's because the numbers in column B do not match, so the formula returns blank.

    Maybe try this:

    =IFNA(LOOKUP(2,1/((Data!$A$2:$A$2315=$A2)*(Data!$C$2:$C$2315=$C2)*(Data!$D$2:$D$2315=$D2)),Data!E$2:E$2315),"")
    Last edited by AliGW; 04-12-2019 at 08:13 AM.

  13. #13
    Registered User
    Join Date
    11-17-2018
    Location
    pakistan
    MS-Off Ver
    office 2016
    Posts
    32

    Re: data positioning with respect to date and name

    Thanks AliGW it is working. I am really thankfull to you.

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,914

    Re: data positioning with respect to date and name

    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. Thanks.

+ 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. Group with respect to date and time
    By abdul khader in forum Excel General
    Replies: 3
    Last Post: 10-07-2018, 02:47 PM
  2. Count of Name in Excel With Respect of Date Range
    By nasir2win in forum Excel General
    Replies: 3
    Last Post: 01-26-2018, 09:27 AM
  3. [SOLVED] How to count Unique Number with respect to Date
    By amit.nikhil in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-29-2012, 02:17 AM
  4. [SOLVED] How to find out day with respect to date in other column
    By shaileshgavanang in forum Excel General
    Replies: 5
    Last Post: 06-19-2012, 02:56 PM
  5. [SOLVED] Excel 2007 : sum between two date with respect to specific customer
    By shaileshgavanang in forum Excel General
    Replies: 4
    Last Post: 06-15-2012, 02:45 PM
  6. Replies: 0
    Last Post: 06-09-2008, 04:29 PM
  7. 3 columns; date and two data, problem is sorting and calculating with respect to date
    By phosphorescence in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-29-2008, 04:21 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