Importing data

AB

New Member
Joined
Nov 11, 2005
Messages
8
I have over 12 thousand prices in a single column. They look like this.

595000
100250
150099
859900


595000 is supposed to be $5.95
100250 is supposed to be $100.25
150099 is supposed to be $1500.99
859900 is supposed to be $85.99

Help, how do I convert this to the correct amounts.


Thankx in advance
A.B. Smith
http://www.onlinepowersports.com
 
Remember, Nate said the function "...assumes that the last non-zero is the last number in the returned dollar amount".
 
Upvote 0

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hello again,
AB said:
3.89 should be 38.90......3.25 should be 38.90, many of the others work depending on where the zero is.
Which zero? Your data points had many zeros in them.

What is the logic? I created some logic based on your data sample, you're saying that doesn't work. What's the conversion logic and I'm sure someone here can help.
 
Upvote 0
a portion of my data
a copied portion of the file in question.xls
ABCDEFG
1partnumbdescriptioncostmsrp
2AAK-H03-002A-ARMKIT,TRX250R863890059950KIT0430D13
3AAK-S06-400A-ARMKIT,LOWER,LTZ40038900059950KIT0430D6
4AAK-S07-400A-ARMKIT,UPPER,LTZ40032500049950KIT0430D6
5AAL-0043F.C.SHOCKSPRING4.3KG682000104950EA1312F40
6AAL-0045F.C.SHOCKSPRING4.5KG682000104950EA1312F40
7AAL-0046F.C.SHOCKSPRING,4.6KG682000104950EA1312F43
8AAL-0047F.C.SHOCKSPRING4.7KG682000104950EA1312F45
9AAL-0048F.C.SHOCKSPRING,4.8KG682000104950EA1312F43
10AAL-0049F.C.SHOCKSPRING4.9KG682000104950EA1312F43
11AAL-0050F.C.SHOCKSPRING,5.0KG682000104950EA1312F43
12AAL-0051F.C.SHOCKSPRING5.1KG682000104950EA1312F47
13AAL-0052F.C.SHOCKSPRING,5.2KG682000104950EA1312F43
14AAL-0053F.C.SHOCKSPRING5.3KG682000104950EA1312F46
15AAL-0054F.C.SHOCKSPRING,5.4KG682000104950EA1312F43
16AAL-0055F.C.SHOCKSPRING5.5KG682000104950EA1312F46
17AAL-0056F.C.SHOCKSPRING,5.6KG682000104950EA1312F46
Sheet1
 
Upvote 0
Here is what your suggestion did for me. 3.89 should be 38.90
PART01.xls
CDEFGHI
2A-ARMKIT,TRX250R86389003.89599559.95KIT0430D
3A-ARMKIT,LOWER,LTZ400389003.89599559.95KIT0430D
4A-ARMKIT,UPPER,LTZ400325003.25499549.95KIT0430D
5F.C.SHOCKSPRING4.3KG682006.8210495104.95EA1312F
6F.C.SHOCKSPRING4.5KG682006.8210495104.95EA1312F
7F.C.SHOCKSPRING,4.6KG682006.8210495104.95EA1312F
8F.C.SHOCKSPRING4.7KG682006.8210495104.95EA1312F
9F.C.SHOCKSPRING,4.8KG682006.8210495104.95EA1312F
10F.C.SHOCKSPRING4.9KG682006.8210495104.95EA1312F
11F.C.SHOCKSPRING,5.0KG682006.8210495104.95EA1312F
12F.C.SHOCKSPRING5.1KG682006.8210495104.95EA1312F
13F.C.SHOCKSPRING,5.2KG682006.8210495104.95EA1312F
14F.C.SHOCKSPRING5.3KG682006.8210495104.95EA1312F
15F.C.SHOCKSPRING,5.4KG682006.8210495104.95EA1312F
16F.C.SHOCKSPRING5.5KG682006.8210495104.95EA1312F
17F.C.SHOCKSPRING,5.6KG682006.8210495104.95EA1312F
18F.C.SHOCKSPRING5.7KG682006.8210495104.95EA1312F
19F.C.SHOCKSPRING5.9KG682006.8210495104.95EA1312F
20F.C.SHOCKSPRING6.1KG682006.8210495104.95EA1312F
PART01
 
Upvote 0
Right, no surprise as the algorithm was written to do just that, based on your original sample in this thread; that is, it looks for the last non-zero number and assumes that's the cent, then moves left.

What I think you want to do at this point is explain in plain English when a number should be 38.90 instead of 3.89 (just an example) because I can't tell/follow the logic from your data dumps...

Also, see the HTML maker FAQ For posting Spreadsheets to the board:

http://www.mrexcel.com/board2/viewtopic.php?t=92622#problems
 
Upvote 0
Ok, lets try again, I have a set of numbers given to me by the supplier. Here are the examples.

38900 needs to become 38.90
5995 needs to become 59.95
3250 needs to become 32.50
6820 needs to become 68.20
150700 needs to become 150.70
9500 needs to become 9.50
4550 needs to become 4.55
25990 needs to become 259.90
9490 needs to become 9.49

I hope this helps
A.B.
 
Upvote 0
Well, your zeros aren't following a pattern, that I can see, which is how I originally thought I would construct a function...

You say it needs to become x, explain how you know it needs to be that; that's the logic we'll rewrite. :)
 
Upvote 0
Your question
explain how you know it needs to be that?

I have two rows of data, one showing cost (column d above in an earlier response) and one showing msrp (column f above in an earlier response)

The routine you gave me works correctly in column f. This allows me to look at the correct msrp and identify if the cost column is correct. If I see a msrp of 59.95 and a cost of 3.89 I know this 3.89 is not correct a the markup is too much.

What if I just sent you the text file I am trying to import/convert, you may be able to do something with the import routine. Right now I am am prompted by the excell text import wizard when I open the text file from the manufacturer. I set the arrows and get them in the best place I know how.

Here is a file format as received from the manufacturer. My problems are coming between positions 54 and 66.

PRICELIST FILE FORMAT
The following is the format for the files contained on these
diskettes, they are fixed record sizes (104) delimited by a
<cr> and <lf>.

LOCATION NAME DESCRIPTION
________ _____________ _____________________________________
1- 12 Part No. Compressed, no punctuation
13- 28 Part No. with punctuation
29- 53 Description Parts Description
54- 60 Unit Price 9999v999 where 'v' is implied decimal
61- 66 Sugg. Retail Suggested Retail Price 9999v99
67- 70 Qty Price Brk #1 9999 qty necessary for qty price #1
71- 74 ' ' ' #2 ' ' ' ' #2
75- 81 Qty Price #1 9999v999 (3 implied decimals)
82- 88 ' ' #2
89- 92 Unit of Meas. ie, EACH for each, etc
93- 96 Comm COde Commidity COde
97 Product Code Product Code
98 Drag Group 1 = Honda, 2 = Harley
3 = Common, 4 = Misc
99 Type Flag If this field is an '*' then
this part will not be availabe
after current inventories exhausted
100-104 Weight Weight
If you want to extract Drag Specialties only, use the
parts that have a 1, 2, 3 or 4 in the Drag Group (pos. 98).


I hope this helps.
A.B.
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,148
Members
453,021
Latest member
Justyna P

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