Modify Spreadsheet (1 Viewer)

standenman

Member
Local time
Today, 00:27
Joined
May 12, 2016
Messages
45
I have a publically available excel spreadsheet of US hospitals. The spreadsheet provides a plethora of rows for each entry - I am not really sure why. But I want just one row for each hospital - one row per Facility ID. Can anyone help me do this?
 

Attachments

  • Query1.zip
    492.1 KB · Views: 30

plog

Banishment Pending
Local time
Today, 02:27
Joined
May 11, 2011
Messages
11,646
A simple aggregate query will do this. Import that spreadsheet into Access, then make a query based on that table. Bring down every field, change the query to an aggregate query (click the Sigma/Summation sign). Then run the query and you will have your data.
 

LarryE

Active member
Local time
Today, 00:27
Joined
Aug 18, 2021
Messages
591
Here you go. TblImport is imported and TblHospitals is the 391 separate hospitals.
 

Attachments

  • Hospitals.accdb
    4.6 MB · Views: 32

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 15:27
Joined
May 7, 2009
Messages
19,243
if you have newer version of MS Excel, they have this Unique() function.
you create New Sheet (Sheet2) and on Sheet2, put this Formula on A1 cell:

=UNIQUE(Query1)

it will give you the list of unique hospitals (391).
 

LarryE

Active member
Local time
Today, 00:27
Joined
Aug 18, 2021
Messages
591
if you have newer version of MS Excel, they have this Unique() function.
you create New Sheet (Sheet2) and on Sheet2, put this Formula on A1 cell:

=UNIQUE(Query1)

it will give you the list of unique hospitals (391).
Pretty cool, but just make sure you do all your sorting first, before using Unique.
 

Users who are viewing this thread

Top Bottom