+ Reply to Thread
Results 1 to 5 of 5

Sort Date Descending in New Sheet within Row

  1. #1
    Registered User
    Join Date
    12-29-2008
    Location
    Erode, India
    Posts
    7

    Red face Sort Date Descending in New Sheet within Row

    Dear Experts
    I have very Big Data varying from time to time (contains Two rows of Data for each record)
    1. The column "F" (Date) to end of each Row has to be sorted latest to old (z-a) leaving blank cells along with the remarks Down there
    2. If the Date in the F Column is less than 'a1' cell (Current Date / Date We mention) the both rows shall become red

    The result has to be in Report sheet as in sample file

    Thanks
    Jai
    Attached Files Attached Files
    Last edited by abccells; 09-19-2015 at 05:21 AM. Reason: Typos

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Sort Date Descending in New Sheet within Row

    Hi,

    You need to first change the dates in Sub sheet in date format as they all are in General format.

    Now in final sheet F3=IFERROR(INDEX(Sub!$F3:$BJ3,,LARGE(COUNTIFS(Sub!$F3:$BJ3,">="&Sub!$F3:$BJ3),COLUMNS(Final!$E3:E3))),"") put this formula with CTRL+SHIFT+ENTER and drag over.

    F3
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Now in final sheet F4=IFERROR(IF(INDEX(Sub!$F4:$BJ4,,MATCH(F3,Sub!$F3:$BJ3,0))=0,"",INDEX(Sub!$F4:$BJ4,,MATCH(F3,Sub!$F3:$BJ3,0))),"") and drag over.

    F4
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    For the conditional formatting you need to put formula =$F3>$A$1 and format as you need.

    You file is attached.

    Hope this will help you.
    Attached Files Attached Files
    Last edited by shukla.ankur281190; 09-19-2015 at 08:13 AM.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    12-29-2008
    Location
    Erode, India
    Posts
    7

    Re: Sort Date Descending in New Sheet within Row

    Thx
    Mr.Ankur Shukla
    for the immediate answer

    Still I have the following problem
    Row No 7 originally contain 4 Dates, the resultant sheet gives more dates

    Shall I have to copy and paste every time i get new data or i resort to VBA

    Jai
    Last edited by abccells; 09-19-2015 at 01:58 PM. Reason: Typos

  4. #4
    Registered User
    Join Date
    12-29-2008
    Location
    Erode, India
    Posts
    7

    Re: Sort Date Descending in New Sheet within Row

    Sir
    If a VBA Could do this,
    1. the mistake could be avoided
    2. The file will not become bulky
    3. The varying data could be handled easily

    Thanks

  5. #5
    Registered User
    Join Date
    12-29-2008
    Location
    Erode, India
    Posts
    7

    Re: Sort Date Descending in New Sheet within Row

    Thanks to adopted and modified Code of Mr.Jindon

    Please Login or Register  to view this content.
    It work like Gem

    Now the problem is
    Each data is a set of two rows. 1st Cell is Date and 2nd Cell (just under Date) is Remarks of the Date
    So, the Sorting has to be done two rows together like F3&F4, G3&G4, H3&H4.... F5&F6, G5&G6, H%&H6...
    I tried to change "For i = 1" to "For i = 2"
    But it does not work

    Jai
    Last edited by abccells; 09-23-2015 at 12:31 AM. Reason: Explained

+ 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. [SOLVED] Sort sheet names descending
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-01-2015, 04:43 PM
  2. Data sort then sort of same value in descending days of the week
    By jimbob121 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2014, 02:32 PM
  3. [SOLVED] Sort Table Descending
    By Jonathan78 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-24-2013, 03:05 AM
  4. [SOLVED] Sort a column descending: VBA
    By niko79542 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2012, 04:16 PM
  5. VBA to sort column descending - can't get it right!
    By wonderdunder in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-18-2011, 04:29 AM
  6. Using sort descending in VBA
    By eonizuka in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-05-2010, 06:05 PM
  7. Sort in descending order
    By shahcu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2008, 03:01 AM

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