Solved

# Formatting

Posted on 2014-07-29
162 Views
How do I take this cell that was dumped out of a system and format to quantity.
0
Question by:Pete Edwards
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 3
• 3
• 2

LVL 19

Expert Comment

ID: 40227431
0

Author Comment

ID: 40227445
0

LVL 19

Accepted Solution

Montoya earned 250 total points
ID: 40227456
=IF(ISNUMBER(D4),,NUMBERVALUE(D4))

this formula is in column D5.. just change your columns accordingly

the formula checks to see if the value is a number, if it's not, it changes it to a Number value (NUMBERVALUE())
0

LVL 13

Assisted Solution

Russell Fox earned 250 total points
ID: 40227469
If you mean generally how quantities are normally formatted in a spreadsheet, I use a number format so I can have comma thousands separators and no decimal places. Of course, if the quantity can be fractional (like "4.5 ounces") then you'll need decimals. In Excel you would select that column or cells, right-click, press "Format Cells", and set it up like this:
It will also depend on what spreadsheet you're using and what system the data is coming from.
0

Author Comment

ID: 40227501
Iammontoya,

Applied your formula and it just brought back a #Name.
0

LVL 19

Expert Comment

ID: 40227511
you must have a valid value in that field... like if you had '239958
it would convert that to 239958
if you had pizza in that field.. it would not be able to convert that to a number
0

LVL 13

Expert Comment

ID: 40227521
@Iammontoya if right: if you're actually looking at "######" like in your example, there is no number in that field, it's just a string of pound signs. Your import did not bring over numeric data that can be formatted.
0

Author Closing Comment

ID: 40227619
Thanks again.
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question