Excel formatting is annoying!

Discuss software associated with Astronomy!
Post Reply
User avatar
DEnc United States of America
Jupiter Ambassador
Articles: 0
Offline
Posts: 287
Joined: Tue Aug 13, 2019 11:52 pm
4
Location: Northern CA
Status:
Offline

TSS Photo of the Day

Excel formatting is annoying!

#1

Post by DEnc »


I’m having trouble importing text files into Excel. I’ve downloaded a text file of the Washington Double Star Catalog, which I’d like to import to Excel using Data/GetData/FromText. But when I parse the file to columns using the delimiter, I can’t get Excel to stop being “helpful” by treating entries such as “+034+005” as a calculation upon import.

My current version is Office 2016. I’ve had luck in turning off this feature in earlier versions of Excel with File/Options/Advanced/TransitionFormulaEvaluation, but with the current version, it’s a no go.

With other text files I haven’t delimited the file for import; I extracted columns in Excel with the left(text)/right(text) commands. Even then it’s a slog to fight the formatting, but ultimately it’s doable. However this file’s rows are particularly busy--with space delimiters of varying lengths across 11 columns of data.

Is there anyone out there that’s successfully battled through this nonsense? Is there some setting that finally and definitively turns formatting features off? Any advice would be appreciated, else I’ll resort to cracking open SQL For Dummies!

Thanks,

David
User avatar
JimMinCT United States of America
Saturn Ambassador
Articles: 0
Offline
Posts: 393
Joined: Tue May 07, 2019 10:24 pm
4
Location: Ct
Status:
Offline

TSS Awards Badges

TSS Photo of the Day

Re: Excel formatting is annoying!

#2

Post by JimMinCT »


I know to get excel to ignore the string as a formula, you insert an apostrophe at the beginning of the string.
Not sure if this is possible over the entire document you're importing. Sorry if not enough help. Yeah, Excel is no fun...
OTA's: Kson 1026-C, 4" Carbon Fiber ED Refractor, Home-built, 6.1", f/2.? APO refractor... (In Progress) 8" Meade LX2 SCT Mounts: CGX Imaging: ZWO ASI 1600MM, Canon 550D (T2i) Software: PixInsight, APT, PHD2, SharpCap, SGP, Stellarium, Registax, Stuff: Astro-Tech 0.8x FR/FF, Hotech SCA FF, ZWO 7nm 31mm LRGB-SHO filter set, ZWO 8 position EFWObsy: "Maybe Spaceship" Observatory
Image
User avatar
DEnc United States of America
Jupiter Ambassador
Articles: 0
Offline
Posts: 287
Joined: Tue Aug 13, 2019 11:52 pm
4
Location: Northern CA
Status:
Offline

TSS Photo of the Day

Re: Excel formatting is annoying!

#3

Post by DEnc »


Yup, that's a useful thing. But the database is 4 files, the first of which has ~32,000 rows!
User avatar
JimMinCT United States of America
Saturn Ambassador
Articles: 0
Offline
Posts: 393
Joined: Tue May 07, 2019 10:24 pm
4
Location: Ct
Status:
Offline

TSS Awards Badges

TSS Photo of the Day

Re: Excel formatting is annoying!

#4

Post by JimMinCT »


Could you write a macro that would automate the task? I have no idea what your skill level is.
My excel skills are probably about a 6 on a 1-10 scale, but I get by. :)
I've written a couple that ended up saving me a ton of time.
OTA's: Kson 1026-C, 4" Carbon Fiber ED Refractor, Home-built, 6.1", f/2.? APO refractor... (In Progress) 8" Meade LX2 SCT Mounts: CGX Imaging: ZWO ASI 1600MM, Canon 550D (T2i) Software: PixInsight, APT, PHD2, SharpCap, SGP, Stellarium, Registax, Stuff: Astro-Tech 0.8x FR/FF, Hotech SCA FF, ZWO 7nm 31mm LRGB-SHO filter set, ZWO 8 position EFWObsy: "Maybe Spaceship" Observatory
Image
User avatar
DEnc United States of America
Jupiter Ambassador
Articles: 0
Offline
Posts: 287
Joined: Tue Aug 13, 2019 11:52 pm
4
Location: Northern CA
Status:
Offline

TSS Photo of the Day

Re: Excel formatting is annoying!

#5

Post by DEnc »


RE: macros, I have written a few. The challenge remains: how to tease out the columns.
User avatar
Graeme1858 Great Britain
Co-Administrator
Co-Administrator
Articles: 1
Online
Posts: 7423
Joined: Mon Jun 24, 2019 7:16 pm
4
Location: North Kent, UK
Status:
Online

TSS Awards Badges

TSS Photo of the Day

I Broke The Forum.

Re: Excel formatting is annoying!

#6

Post by Graeme1858 »


Hello DEnc

Any chance you can post a Dropbox or Google Drive etc link to your text file?

It might be easier to sort out and then explain if the data was on the screen in front of me.

I'm too Excel rusty to visualize it otherwise!

Regards

Graeme
______________________________________________
Celestron 9.25 f10 SCT, f6.3FR, CGX mount.
ASI1600MM Pro, ASI294MC Pro, ASI224MC
ZWO EFW, ZWO OAG, ASI220MM Mini.
APM 11x70 ED APO Binoculars.

https://www.averywayobservatory.co.uk/
User avatar
DEnc United States of America
Jupiter Ambassador
Articles: 0
Offline
Posts: 287
Joined: Tue Aug 13, 2019 11:52 pm
4
Location: Northern CA
Status:
Offline

TSS Photo of the Day

Re: Excel formatting is annoying!

#7

Post by DEnc »


Thanks Graeme, here's a dropbox link.

I've instituted Plan B just in case; my SQL primer will arrive tomorrow!

David

https://www.dropbox.com/s/24j15aohufie7 ... 1.txt?dl=0
User avatar
ARock
Saturn Ambassador
Articles: 0
Offline
Posts: 363
Joined: Mon May 13, 2019 4:06 am
4
Location: USA
Status:
Offline

TSS Awards Badges

Re: Excel formatting is annoying!

#8

Post by ARock »


From
https://www.cloudynights.com/topic/4448 ... sv-format/

the last post has a link to a github page which has an excel spreadsheet (maybe not the most current version of WDS)
https://github.com/miguelvb/wds_catalog
AR
Scopes: Zhumell Z8, Meade Adventure 80mm, Bushnell 1300x100 Goto Mak.
Mount: ES EXOS Nano EQ Mount, DIY Arduino+Stepper drives.
AP: 50mm guidescope, AR0130 based guidecam, Canon T3i, UHC filter.
EPs: ES82 18,11,6.7mm, Zhumell 30,9mm FJ Ortho 9mm, assorted plossls, Meade 2x S-F Barlow, DGM NPB filter.
Binos: Celestron Skymaster 15x70 (Albott tripod/monopod), Nikon Naturalist 7x35.
User avatar
Ylem United States of America
Universal Ambassador
Articles: 0
Online
Posts: 7560
Joined: Sun May 12, 2019 2:54 am
4
Location: Ocean County, New Jersey
Status:
Online

TSS Photo of the Day

Re: Excel formatting is annoying!

#9

Post by Ylem »


I dislike Excel
Clear Skies,
-Jeff :telescopewink:


Member; ASTRA-NJ



Orion 80ED
Celestron C5, 6SE, Celestar 8
Vixen Porta Mount ll
Coronado PST
A big box of Plossls
Little box of filters
:D



User avatar
DEnc United States of America
Jupiter Ambassador
Articles: 0
Offline
Posts: 287
Joined: Tue Aug 13, 2019 11:52 pm
4
Location: Northern CA
Status:
Offline

TSS Photo of the Day

Re: Excel formatting is annoying!

#10

Post by DEnc »


Ylem wrote: Fri May 08, 2020 12:32 amI dislike Excel
You're not alone!
User avatar
DEnc United States of America
Jupiter Ambassador
Articles: 0
Offline
Posts: 287
Joined: Tue Aug 13, 2019 11:52 pm
4
Location: Northern CA
Status:
Offline

TSS Photo of the Day

Re: Excel formatting is annoying!

#11

Post by DEnc »


ARock wrote: Fri May 08, 2020 12:21 am From
https://www.cloudynights.com/topic/4448 ... sv-format/

the last post has a link to a github page which has an excel spreadsheet (maybe not the most current version of WDS)
https://github.com/miguelvb/wds_catalog
Thank you for these! I got the Excel file, looks great. Also the links look helpful with regard to ideas for SQL syntax once I have SQL up and running--I'll nab the latest catalog if all goes well.
User avatar
Graeme1858 Great Britain
Co-Administrator
Co-Administrator
Articles: 1
Online
Posts: 7423
Joined: Mon Jun 24, 2019 7:16 pm
4
Location: North Kent, UK
Status:
Online

TSS Awards Badges

TSS Photo of the Day

I Broke The Forum.

Re: Excel formatting is annoying!

#12

Post by Graeme1858 »


DEnc wrote: Thu May 07, 2020 9:15 pm I’m having trouble importing text files into Excel

Nailed it!

In Excel
Click File, Open, Browse
Change file type to all files
Open your text file
Text Import Wizard starts
Original data type - Fixed width
Click Next
On Step 2 of 3 Create break lines to the left of the two DEC" headers
Click Next
Click Finish

If that didn't make sense, here's an Excel file:

https://1drv.ms/x/s!AtzUKEWck9gpvtI1qFi ... g?e=j0v2jk

I love Excel!

Regards

Graeme
______________________________________________
Celestron 9.25 f10 SCT, f6.3FR, CGX mount.
ASI1600MM Pro, ASI294MC Pro, ASI224MC
ZWO EFW, ZWO OAG, ASI220MM Mini.
APM 11x70 ED APO Binoculars.

https://www.averywayobservatory.co.uk/
User avatar
DEnc United States of America
Jupiter Ambassador
Articles: 0
Offline
Posts: 287
Joined: Tue Aug 13, 2019 11:52 pm
4
Location: Northern CA
Status:
Offline

TSS Photo of the Day

Re: Excel formatting is annoying!

#13

Post by DEnc »


Graeme1858 wrote: Fri May 08, 2020 8:21 pm
Nailed it!
Nicely done--thank you!

David
User avatar
Graeme1858 Great Britain
Co-Administrator
Co-Administrator
Articles: 1
Online
Posts: 7423
Joined: Mon Jun 24, 2019 7:16 pm
4
Location: North Kent, UK
Status:
Online

TSS Awards Badges

TSS Photo of the Day

I Broke The Forum.

Re: Excel formatting is annoying!

#14

Post by Graeme1858 »


No worries!
______________________________________________
Celestron 9.25 f10 SCT, f6.3FR, CGX mount.
ASI1600MM Pro, ASI294MC Pro, ASI224MC
ZWO EFW, ZWO OAG, ASI220MM Mini.
APM 11x70 ED APO Binoculars.

https://www.averywayobservatory.co.uk/
User avatar
Graeme1858 Great Britain
Co-Administrator
Co-Administrator
Articles: 1
Online
Posts: 7423
Joined: Mon Jun 24, 2019 7:16 pm
4
Location: North Kent, UK
Status:
Online

TSS Awards Badges

TSS Photo of the Day

I Broke The Forum.

Re: Excel formatting is annoying!

#15

Post by Graeme1858 »


DEnc wrote: Fri May 08, 2020 8:26 pm Nicely done--thank you!

Did the method make sense?
______________________________________________
Celestron 9.25 f10 SCT, f6.3FR, CGX mount.
ASI1600MM Pro, ASI294MC Pro, ASI224MC
ZWO EFW, ZWO OAG, ASI220MM Mini.
APM 11x70 ED APO Binoculars.

https://www.averywayobservatory.co.uk/
User avatar
DEnc United States of America
Jupiter Ambassador
Articles: 0
Offline
Posts: 287
Joined: Tue Aug 13, 2019 11:52 pm
4
Location: Northern CA
Status:
Offline

TSS Photo of the Day

Re: Excel formatting is annoying!

#16

Post by DEnc »


It looks sensible and devilishly simple--I'll try it once I find my way back out of a rabbit hole I'm working in.
User avatar
DEnc United States of America
Jupiter Ambassador
Articles: 0
Offline
Posts: 287
Joined: Tue Aug 13, 2019 11:52 pm
4
Location: Northern CA
Status:
Offline

TSS Photo of the Day

Re: Excel formatting is annoying!

#17

Post by DEnc »


Graeme1858 wrote: Fri May 08, 2020 8:30 pm
Did the method make sense?
That was easy! I glossed over the part of the wizard that allows you to manually create column breaks. Usually I work with the delimited file type, but this is much easier.

Thanks again Graeme.

David
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “Astronomy Software”