SQL in the mean whilst

mole999

Well-known Member
Joined
Oct 23, 2004
Messages
10,524
Office Version
  1. 2019
  2. 2016
  3. 2013
Platform
  1. Windows
I am trying to resolve a problem that I have in SQL, for the meantime I need a quickish fix on the excel output

I have unique IDs, with different dates

just need a code to look at the unique and put a mark in a helper column of the earliest date. The range is about 3500, and they are all sorted on ID, with date descending

Excel Workbook
BCD
1duplicate IDsDatemarker
2A01/07/2014
3A01/09/2013
4A02/06/2012x
5B13/05/2029
6B17/02/1964x
7B01/01/2009
Sheet1


Thoughts most welcome
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
=IF(A2<>A3,"x","")
and fill down.
 
Upvote 0
I better make sure my dates are sorted fully then (my example wasn't) just what I need though (I think)
 
Last edited:
Upvote 0
I am trying to resolve a problem that I have in SQL,
Do you need any help with the underlying SQL part?
I write quite a bit of SQL for my job.
 
Upvote 0
I tried to PM but the code is 26000 characters longer than allowed LOL
 
Upvote 0
I tried to PM but the code is 26000 characters longer than allowed LOL
Wow! That's some long code.
Do you know, in general, what the issue is?
Or do you know the area of concern in the code?
 
Upvote 0
it is basically a Rank over Partition to get a unique person, then add in some extra values and this is where i discovered the additional values are not singular, so considering a further rank wrapped round the outside to give the individual unique ID associated with the lowest value, hence the fudge in excel until I have a working example. My SQL skills are as good as my Excel (all self taught, trial and error)
 
Upvote 0
My SQL skills are as good as my Excel (all self taught, trial and error)
I think we are both in the same boat there (and Access too)!
 
Upvote 0
i used to do access years back, and never knew you could join tables :) (trying to force data into only 256 columns when I needed more) was only discovered when i ventured into SQL. I found a way to send a fax from access, when I had been told it wasn't possible
 
Last edited:
Upvote 0

Forum statistics

Threads
1,203,128
Messages
6,053,674
Members
444,678
Latest member
Kenny_D

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top