• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Two Date Columns in same spreadsheet: Date wise sorting problem

fahadferoz

Member
Hi

I have two date columns in the attached spread sheet. All I want is to sort the spreadsheet by dates. I am trying to do it by using sorting tab but it is not showing the way I want it. In the spreadsheet there is is a gap between the chalan received and payment made. I want to put a row gap as the payment date normally happens after chalan received. But the row gap is not showing. Rather excel is showing the these two in the same row.

Would you please help me out.
 

Attachments

  • Sorting problem.xlsx
    61.1 KB · Views: 7
Can you please explain more clearly "chalan received and payment made" which columns are these?

What do you mean you want a blank row?
Please post the file with a manually inserted blank row/s if that makes it more clear
 
chalans received = means a consignment is received from company
payment made = means a payment has been made by us to the company for the consignment.

The columns I am talking about is 'B' and 'J'

Please have a look at what I want in the attached file.
 

Attachments

  • Sorting problem (what I require).xlsx
    47.1 KB · Views: 7
Why not add a helper column
upload_2017-2-9_15-37-34.png

O1: Sort
O2: =INT(ROW()/2)
Copy O2: Down
Then copy paste Column O as values on top of itself

or alternatively
O2: =Row()
Copy O2: Down
Then copy paste Column O as values on top of itself

Now you can use that to sort ?
 
Mr Hue
I got really confused. The spreadsheet contains a lot of data which manually can't be numbered (the one you showed). Is there any way for the excel to do it automatically.

Thanks for helping.
 
The problem is that to maintain the order and allow sorting there must be something to anchor the positions
The helper column doesn't have to be visible if that is an issue

The only other way is yo use a VBA script to reformat it via code
 
Many thanks for your valuable suggestion. I am already using a VBA script. Attached please find the workbook 1. Here the tab import has a VBA script. Could you write the code and insert that in the current VBA.

Please help me on this.
 

Attachments

  • Workbook1.xlsm
    58.2 KB · Views: 3
  • Screen Shot 2017-02-09 at 9.35.56 AM.png
    Screen Shot 2017-02-09 at 9.35.56 AM.png
    209.6 KB · Views: 5
Back
Top