Coin Community Family of Web Sites Join Thousands of Coin, Bullion, & Money Collectors
300,000 items to help build your collection! Coin, Banknote and Medal Collectors's Online Mall Royal Canadian Mint products, Canadian, Polish, American, and world coins and banknotes. Join Thousands of Coin, Bullion, & Money Collectors Vancouvers #1 Coin and Paper Money Dealer Shop for APMEX Bullion on eBay!Specializing in Modern Numismatics








Username:
Password:
Save Password
Forgot your Password?


This page may contain links that result in small commissions to keep this free site up and running.

Welcome Guest! Registering and/or logging in will remove the anchor (bottom) ads. It's Free!

Coin Spreadsheet Question

To participate in the forum you must log in or register.
Author Previous TopicReplies: 37 / Views: 5,868Next Topic
Page: of 3
Valued Member
StormStrikes's Avatar
United States
136 Posts
 Posted 05/27/2011  12:02 am  Show Profile   Bookmark this reply Add StormStrikes to your friends list Get a Link to this Reply
Im hoping I can get some assistance here on this and if I have went beyond the scope of this thread and this needs to be posted elsewhere, please let me know.

I want to create a column in my spreadsheet that will hold unique numbers, something 5 - 6 digits long and up if needed. I'm using Linux and thus OpenOffice. I have a few issues though.

Im using Tabs to separate out denominations and some denominations will have two tabs (dollars and quarters for instance to separate out the classic from the newer coins). So my unique numbers need to be unique across the whole workbook. I plan on using that unique number as the filename for the image files for the coins.

I can find all sorts of information on how to do this with VisualBasic in Excel, but I dont believe OpenOffice Calc uses or supports VB (Not sure on that one, havent seen it anywhere). So I either need a way to do this without a Macro or VB (use a forumula or something).

I have, thus far, have been unable to find any information that shows me how to do a unique number across the entire workbook using only a formula. Now if there is a way to do this in Calc with a macro or workbook wide script of some kind, I'm all for that too, I just dont know how to do that with Calc.

Thanks in advance for all your help.
Moderator
Learn More...
Fuzzy317's Avatar
United States
14463 Posts
 Posted 05/27/2011  12:22 am  Show Profile   Bookmark this reply Add Fuzzy317 to your friends list Get a Link to this Reply
I have OpenOffice, but have never done that (if possible)

What about assigning a number to each tab, then including that number in your unique number? for example: assign number 1 to the cents tab, 4 to the classic quarters tab, 5 to the modern quarter tab, then your number column being 100001 to 100019 for cents, 400001 to 4000019 for classic quarters, 500001 to 500019 for modern quarters.

Or use 000001 to 000019 for each tab, and have pictures in a different folder by coin type?
Valued Member
StormStrikes's Avatar
United States
136 Posts
 Posted 05/27/2011  12:43 am  Show Profile   Bookmark this reply Add StormStrikes to your friends list Get a Link to this Reply
I like your tab numbering idea, I had not thought of that and it takes out some complexity. However, I'm not understanding where you are getting the ending number of 19, or was that just for example.
Moderator
Learn More...
Fuzzy317's Avatar
United States
14463 Posts
 Posted 05/27/2011  12:45 am  Show Profile   Bookmark this reply Add Fuzzy317 to your friends list Get a Link to this Reply
19 was only an example

or you could assign letters to the tabs, that way file names would not be numbers only, classic quarter picture 1 could be CQ000001 and modern quarter picture 1 could be MQ000001. Or any combination that you like and may have meaning for your collection.
Edited by Fuzzy317
05/27/2011 12:50 am
Valued Member
StormStrikes's Avatar
United States
136 Posts
 Posted 05/27/2011  01:27 am  Show Profile   Bookmark this reply Add StormStrikes to your friends list Get a Link to this Reply
I like that idea a lot actually. So I think I will at least do that.
Valued Member
StormStrikes's Avatar
United States
136 Posts
 Posted 05/27/2011  03:22 am  Show Profile   Bookmark this reply Add StormStrikes to your friends list Get a Link to this Reply
Okay, it appears that I can use the RAND() function to generate the random numbers. For instance, I played with =RANDBETWEEN(1,500000) which generates a random number between 1 and 500,000. I can constrain it to 6-digit numbers, for example, by using =RANDBETWEEN(100000,500000).

The remaining issues I have are:

-I need to make sure it doesn't recalculate or rerun the generation each time I open the file (workbook)
-I need to figure out how to append or concatenate the tab names to the numbers. For instance as Fuzzy mentioned, using CQ, MQ, etc. to separate out the currencies and to reduce any chance of actually getting a duplicate number since I will be using the numbers as a filename for the images
-If I could somehow use the smartfill (Fill down) to only use the rows in which I have actually information about coins I would be in hog heaven. That is, skip empty rows such as those that may be separators, decorations, etc.

I'll keep marching on. I think I got the major part of it now I just need to fill in the details.
Moderator
Learn More...
Fuzzy317's Avatar
United States
14463 Posts
 Posted 05/27/2011  03:42 am  Show Profile   Bookmark this reply Add Fuzzy317 to your friends list Get a Link to this Reply
why do you want random numbers for picture files? technically it is possible that any random number generator can give a number twice.

Personally I like names that mean something, like what are its contents or when was it taken. IIRC on many digital cameras, the default file name usually has date, time, and sequence, like 110527034201 for the first picture taken today, this minute.
Valued Member
StormStrikes's Avatar
United States
136 Posts
 Posted 05/27/2011  09:58 am  Show Profile   Bookmark this reply Add StormStrikes to your friends list Get a Link to this Reply
I didnt necessarily want a random number for the image filename, just thought it would simplify things to use the unique number as the filename and make the pictures easy to find since they would be the same. As well I dont have to come up with a file name or anything and I would already know the contents are from the coin inventory sheet.

When I chased storms for a number of years I would name all my lightning pictures similarly. I would use the word lightning coupled with the year, date and then an incrementing number from there indicating the number of strikes I had captured on film/camera. For instance, Lightning_20110527_0003 would tell me I caught that strike on todays date and it was the third one I filmed for that day.

My thoughts were to combine your tab naming idea with the unique number and that would tell me all I need to know. The rest would be in the spreadsheet itself.
Valued Member
coinut's Avatar
United States
362 Posts
 Posted 05/27/2011  12:11 pm  Show Profile   Bookmark this reply Add coinut to your friends list Get a Link to this Reply
I've been testing a new DB for coins. I just care about the type, mint, if graded what grade, purchase price and current value. The DB I am testing does not use Excel BUT gives you the option of adding picts, Unc, Junk, place to add comments, Grade, who graded( you, TPA), ect. I hope the DB goes full production as it will save a lot of people a lot of time( except putting in all your coins!)
Pillar of the Community
Nic's Avatar
Philippines
1156 Posts
 Posted 05/28/2011  05:49 am  Show Profile   Bookmark this reply Add Nic to your friends list Get a Link to this Reply

In Excel I'd use 3 horizontal cells to define the image name of
Lightning_20110527_0003

a cell each for Lightning, date & number of strikes, total 3 cells

In an Excel spread sheet each cell is defined specific, so I imagine putting in # of strikes with a date input, gives a cell two identities, which I found impossible to do with Excel. I had the same problem then about two years ago

By the way, veering away from the topic, Storm chasers at National Geographic channel is one of my favorite shows!

Fantastic adventures your having there Storm Strikes!
wish you well !




Valued Member
StormStrikes's Avatar
United States
136 Posts
 Posted 05/28/2011  06:53 am  Show Profile   Bookmark this reply Add StormStrikes to your friends list Get a Link to this Reply
Thanks for your reply Nic. I keep working on this and it seems everytime I think I have something that will work, I keep moving towards more complexity, which I'm trying to stay away from unless its just absolutely necessary.

I came up with what I think will be a suitable naming convention for the file names, which will consist of three main parts.

1. The denomination, which may not be completely necessary. But I figured I would use something like 100C for dollar coins (100 cents), 050C for half dollars, 025C for quarters and so on.
2. Include the mint mark
3. Then a random, unique number.

So in the end you would end up with something like 100C.PP.XXXXXX or 100C.P.XXXXXX. That way at a glance I could tell what the denomination was and the mint. I guess I could take it a bit further and use PP, DD, SS, PR, SP to denote proof coins, and silver proofs.

The problem is tying this all together in the spreadsheet. I know how to use the RAND and RANDBETWEEN function and concatenate so that I get the results I want but I wold rather it just pull it all together automatically. I have a column for the Mint mark but no column for denomination since I think it would be rather silly to have a column with nothing but 100C down it.

The other issue is I dont know how to tell the spreadsheet to skip cells and still include all the afore mentioned stuff. I use rows, for example A1, A2, A3, then I skip A4 as it may be a separating row between the lines. Well when you use the smart fill and input your formula then fill down, it fills every row, even the separating rows. So that is a problem.

I know people reading this would say this guy has just lost his mind and taking this way too far and making way too much of it, and they would probably be right. But I like these kinds of challenges as I learn this way. And sometimes its hard to get someone to go along and work through it and come to a solution for how I envision doing it and then say now that we've done that, lets look at this other way that may be easier than what you are doing so that I get the experience and learning of doing it perhaps a more complicated way but then also the simpler way that may even be more effective.

But thats where I stand with all this so far. I've got the basic frame work done, I just need to come up with how to generate the unique id's for each coin so I have unique filenames for each coin, I've already got the rest done.

I think one solution is to just make an extra sheet and have the denomination there in one column (the 100C) and then in the next column, the random, unique number. The issue I ran into with that is getting the sheet with the inventory list on it to pull from that random, unique number list and then delete the number it uses after it sets it on the inventory list so it cannot be used again.

Again, I'm probably over complicating it, but my thought process is if I get through it and solve then along the way I may learn something that will open my eyes and mind to a simpler way.
Edited by StormStrikes
05/28/2011 06:57 am
Moderator
Learn More...
Fuzzy317's Avatar
United States
14463 Posts
 Posted 05/28/2011  07:08 am  Show Profile   Bookmark this reply Add Fuzzy317 to your friends list Get a Link to this Reply
as far as having a separator row, maybe if you have that row protected (not allow input) the fill may skip that row?
or another possibility is don't use a separator row, but the row where you want it, double that rows height?
Edited by Fuzzy317
05/28/2011 07:08 am
Valued Member
StormStrikes's Avatar
United States
136 Posts
 Posted 05/28/2011  12:56 pm  Show Profile   Bookmark this reply Add StormStrikes to your friends list Get a Link to this Reply
You're a pretty smart guy there Fuzzy, I think I will have to give that a try and see how that works out.
Pillar of the Community
The_Duke's Avatar
United States
1745 Posts
 Posted 05/28/2011  1:23 pm  Show Profile   Bookmark this reply Add The_Duke to your friends list Get a Link to this Reply
This is getting pretty complicated. Databases are not that difficult and you can easily attached photos to your record. In fact, I just tried it to prove to myself, it took me 2 minutes to figure out.

Most versions of Office come with Access. Maybe have a look at it.
Bedrock of the Community
United States
20753 Posts
 Posted 05/28/2011  5:55 pm  Show Profile   Bookmark this reply Add just carl to your friends list Get a Link to this Reply

Quote:
This is getting pretty complicated. Databases are not that difficult and you can easily attached photos to your record. In fact, I just tried it to prove to myself, it took me 2 minutes to figure out.


I like that part of getting pretty complicated. Very possibly one of the many reasons I keep my Excel spreadsheets to bare minimums. Less if possible.
I've read what has been explained here so far about how to document a collection. I feel somewhere along the line the FUN of this hobby is going to make headaches for many way more than it's worth. Look at what you have so far and stop and think how much you really will need or want that in 40 years.
  Previous TopicReplies: 37 / Views: 5,868Next Topic
Page: of 3

To participate in the forum you must log in or register.



    




Disclaimer: While a tremendous amount of effort goes into ensuring the accuracy of the information contained in this site, Coin Community assumes no liability for errors. Copyright 2005 - 2026 Coin Community Family- all rights reserved worldwide. Use of any images or content on this website without prior written permission of Coin Community or the original lender is strictly prohibited.
Contact Us  |  Advertise Here  |  Privacy Policy / Terms of Use

Coin Community Forum © 2005 - 2026 Coin Community Forums
It took 0.34 seconds to rattle this change. Forums