Convert 4 Digit Zip Code To 5 Digit Zip Code?

Apr 25, 2014

I have an address (city, state, zip format) in a cell. Some of the zip codes only have a 4-digit zip code which is the way the file was received. I know these zip codes have leading zero. How can I convert these to a five-digit code. Examples are as follows:

Waltham MA 2453
convert to 'Waltham MA 02453'

Boston MA 2210
convert to 'Boston MA 02210'

CEDAR GROVE, NJ 7009-1174
convert to 'CEDAR GROVE, NJ 07009-1174'

TEANECK CITY, NJ 7666
convert to 'TEANECK CITY, NJ 07666'

View 3 Replies


ADVERTISEMENT

6 Digit Code To Date.

Dec 8, 2009

I have many dates in a column in a 6 digit format such as:

950223
950224
950225

These dates are Feb 23, 1995; Feb 24, 1995 etc.

How can I convert these dates in the column to 2/23/1995, 2/24/1995 etc?

View 3 Replies View Related

Take First Digit From Code And Match To Table?

May 6, 2013

I have a table where

Then I have a set of codes that look like 1ZGM.BA, where the first number/letter relates to a chart

The chart contains approx. 34 different codes. numbers 1-8 and letters A-Z.

Codes look like 1ZGM.BA or A1QL.AA ...I'm only interested in the first character (does not matter if its a letter or number) to decode the product.

The chart looks like
1=Widget Smooth
2=Widget Rough
...and so on.

A=Widget Thick
B=Widget Thin
...and so on to letter Z.

I want to decode the first letter/number of a code that looks like 1ZGM.BA, where the 1 would mean the product is a smooth Widget, and A1QL.AA would equal Widget Thick product.

View 1 Replies View Related

Modifying VBA Code To Generate 4-digit Numbers?

Mar 19, 2013

modifying the following VBA code; this code auto-generates 4-digit unique numbers, using zero as one of the starting digit as well. I need the 4-digit numbers NOT to begin with a zero, the 4-digit numbers should only begin with numbers 1-9.

Private Sub Worksheet_Change(ByVal Target As Range)
Dim Cell As Range
Dim Test As Integer

[Code]....

View 2 Replies View Related

Five Digit Numbers That Represent A Persons Code

Dec 1, 2009

In one column (f5:F100) I have five digit numbers that represent a persons code. I have five groups of codes, they are 10000-15000, 16000-19000, 20000-25000, 26000-29000, and 30000-40000. In another column (Column H) I have an "X" saying the are qualified in something.

I am looking for how to write a statement that says answers this question:

How many people are qualified in the codes between 10000-15000.

Ultimately I am going to take this number and divide it by the total number of people in the group to get a percetage of qualified people in the group.

View 9 Replies View Related

Purge Rows Based On X Digit Code

Nov 15, 2006

I have a list of data that is copied from another application. Once data is pasted into Excel it is one cell. My challenge is following. I need to extract only the rows that appear below particular 9 characther alfa numeric code which is the first character in a row. This character however only appears sporadically so there is a whole list of data underneath it. See below....

View 9 Replies View Related

Color Code Cells Based On Digit Assigned To Name

Jun 21, 2007

I have a spreadsheet with a row for a company name, their offer price underneath that, and a 1,2, or 3 underneath that. In a seperate tab I have the offer prices in order of rank with the company name next to the corresponding price using the Index function. I also need to be able to color code the background of the offer price based upon the 1,2 or 3 associated with each name. I am new to the Index stuff so I need some help putting this one together.

View 3 Replies View Related

Seperate 2 Digit Number Into 2 Single Digit Numbers

Apr 3, 2008

I know you can take a number from one cell and combine it with number from another cell and make it one number. What I need to do is the reverse. Take a two digit number in a cell and separate it into single digits in two cells. If you have the number 50 in a cell, then is there a formula that will take the 5 and put it in cell and take the 0 and put it in the cell beside it?

View 4 Replies View Related

Check Digit For 8 Digit Number

Jun 13, 2014

How to calculate a check digit in excel. The details to calculate this are as follows:

All variables in the calculation are positive integers.

We take each integer of the pro number and multiply it by a value and sum them to get a total.

An Example: 8 Digit Pro Number: 66988757
Pro Number: 6 6 9 8 8 7 5 7
Position in the Pro Number: 1 2 3 4 5 6 7 8
Multiply each digit in the pro number by (10-position) in the number, to achieve a sum.

Using our example pro again:
6*(10-1) + 6*(10-2) + 9*(10-3) + 8*(10-4) + 8*(10-5) + 7*(10-6) + 5*(10-7) + 7*(10-8)
6*9 + 6*8 + 9*7 + 8*6 + 8*5 + 7*4 + 5*3 + 7*2
54+ 48+ 63+48+40+28+15+14 = 310
Take the Sum of the previous calculation and divide it by 11
310/11 = 28

(Actually, it's 28.181818, but since we're working with integers, we truncate everything behind the decimal).

Figure a remainder by multiplying the quotient by 11 and subtracting from the sum.
Remainder = 310 - (28*11) ---> Remainder = 310 - 308 ----> Remainder = 2
Check Digit = 11- Remainder
Check Digit = 11 - 2 ---> Check Digit = 9
Note: if the check digit is 10 or 11, need to subtract 10 from the Check Digit.

View 3 Replies View Related

Convert The Digit In Specific Format

May 6, 2009

I work in the flooring industry and the format we use for cuts of carpet/vinyl is 40-3 (for 40.25 feet), etc. So we are trying to create an excel spreadsheet that will add up these cuts. Right now it's kind of a mess because we have decimals in a column we will be hiding and are converting that to our industry format.

The formula I am having trouble with is as follows:
=MID(A18,1,FIND(".",A18)-1)&"-"&MID(A18,FIND(".",A18),3)*12

The problem is that whenever the totals end in zero, the formula won't convert 40.00 to 40-0. It gives me an error every time. If the total is 40.25 it will convert it to 40-3 just fine.

View 7 Replies View Related

Convert 4 Digit Numbers To Text Value

Feb 21, 2014

I have a column that contains 4 digit numbers that I want to convert to a text value. Here is my example

Number Text Value
7004 RBPA
7002 DCVA
7001 PVBA
.....etc.

There is a total of 10 different number values. I want to include the conversion vba into an existing macro that is performing other functions on the spreadsheet.

View 1 Replies View Related

Convert 4 Digit Numbers To Times

Jul 16, 2007

Is there any way changing general four digit number into hours and minutes?

I have almost 31000 rows of imported data, showing arrival and departure times with four digits (dep 2130, arr 0130) without colons and I need to subtract dep from arr to get block hours. Is there a way to add colon to multiple cells or some other solution to my problem?

Adding colon to 62000 cells one by one does not sound that good to me.

View 7 Replies View Related

Convert X Digit Number To Letters

May 11, 2008

Nice to meet you all. I'd be grateful for any help I could get on this as I have tried it and I'm a bit stumped...

What I need to do is the following:

Convert a 4 digit number (e.g. 1234) in a single cell to a 4 letter string (e.g BCDE) and have the output appear in another cell.

The conversion should be as follows:

0=A
1=B
2=C
3=D
4=E
5=F
6=G
7=H
8=I
9=J
0=K

So, for example, 3678 in one cell should be converted to DGHI in the target cell.

View 6 Replies View Related

Automatically Convert Date Into Single Digit?

Jan 3, 2012

I'm looking for a formula that may automatically convert date into single digit e.g today is Jan 03, 2012 & after adding (1+0+3+2+0+1+2) it will come out 9 ....

View 6 Replies View Related

Change/Convert 4 Digit Number Into Time

Dec 24, 2008

Is it possible to enter a 4-digit number (i.e. 1400) into a textbox and have it display 14:00 and have the time entered into a cell?

View 3 Replies View Related

Automatically Convert 4 Digit Number To Time Format

Aug 30, 2006

Is there any way that I can have a column of cells change the entered 4 digit to a time format? E.g. when somebody enters 1212 in a cell it will automatically convert the entered numbers to 12:12

View 9 Replies View Related

Remove The Last Digit From Each Number, Turning It Into A 5 Digit Number

Mar 2, 2009

I have a column of 6 digit numbers in excel, and I need to remove the last digit from each number, turning it into a 5 digit number. No rounding, just simply remove the last digit. Each number is different. Does anyone know how to quickly and efficiently remove the last digit from each number? I can convert to alphanumeric string if need be...

View 4 Replies View Related

If / Then In A Macro - Changing 2 Digit Year Into 4 Digit Year

Jul 3, 2014

I need a macro where I can highlight a column and change all of the 2 digit years to a 4 digit year (actually, some of the 2 digit years are only 1 digit, e.g. "9" instead of "09").

I have an if then statement that I can use in the column after it, but I'd rather change the actual numbers in the original column, rather than adding another column (and having to keep the original, too).

The statement I had was:
=if(A1>=50,1900+A1,2000+A1)

I just copy dragged down to get the cell numbers for the rest of the column... but using A1 was just for an example, here, it's not necessarily going to be in that column. It needs to be just whichever cells I select.

It seems like it should be pretty simple, but I don't know how to word it in a macro.

Starting Column Example:
12

13

14

99

11

[Code] ......

For some reason I can't get rid of the borders...

View 6 Replies View Related

Converting 2 Digit Year Into 4 Digit Year

Apr 15, 2008

I have 2 digit years (98, 99, 00, 01) that I need to convert to 4 digit years (1998, 1999, 2000, 2001). There is one year per cell. If it was simply a matter of adding 19 or 20 to the beginning of each, I could do that. But since there's a combination of both 19 and 20 that needs to be added and there all intermingled, I'm not sure how to do it.

Can a rule be written to add 19 to the beginning except if the current cell starts with a 0, then add 20? The highest year is 2008 (no 2010 to deal with).

Example:

98 --> 1998
99 --> 1999
00 --> 2000
01 --> 2001

View 9 Replies View Related

Extracting The Last 2 Digit

Jun 2, 2009

How do you remove the last 2 digit

A B
12345688 88
12548963 63
14552365 65

So in column B is would show

88
63
65

View 3 Replies View Related

Select ONLY 2nd Last Digit

Aug 28, 2012

Say I have a sets of numbers in column A as below:
5496523
65325555789

I know the formula to select the last number:
=RIGHT(A1,1) gives the answer 3
=RIGHT(A2,1) gives the answer 9

To select the last 2 numbers is:
=RIGHT(A1,2) gives the answer 23
=RIGHT(A2,2) gives the answer 89

My query is to select ONLY the 2nd last digit (being 2 in A1 or 8 in A2).

View 8 Replies View Related

12 Digit Calculator

Feb 20, 2007

Is there a way to build a 12 digit calculator in excel?

View 9 Replies View Related

15 Digit Sequence

Mar 31, 2009

My question is, a formula was provided to me that add's a comma and a space after a 15 digit sequence of numbers, that formula is:

=IF(MID(C378,LEN(C378)-1,1)="W",C378&" ,",C378)

And what that does is it would change data in a cell that looks like this
01-02-034-05-W2 TO 02-03-045-06-W2

To this:

01-02-034-05-W2 TO 02-03-045-06-W2 ,

The formula works great, thanks to the help of the posters!

However I just ran into an issue, what if I have a set of data in a cell that looks like this:

01-02-034-05-W2 TO 02-03-045-07-W2
02-02-034-05-W2 TO 02-03-045-07-W2
03-02-034-05-W2 TO 02-03-045-07-W2

And I need a space and a comma at the end of each sequence, so the above would change to this after the formula is applied:

01-02-034-05-W2 TO 02-03-045-07-W2 ,
02-02-034-05-W2 TO 02-03-045-07-W2 ,
03-02-034-05-W2 TO 02-03-045-07-W2 ,

Now the data in the cell is wrapped so it lists one set of numbers, then the next set, then the next set as seen above.

View 9 Replies View Related

Remove A Digit

Oct 9, 2009

I have column a with 1000 ten digit numbers. I need to remove the
digit in the fourth place from the left side in the entire column. I don't know how .

View 9 Replies View Related

Is A Number Or A Digit

Jun 22, 2006

how you can determine if a cel value is a number or a digit

It is actually for a column to determine if it has a heading or not and acordingly y have to count the rows off that "current region" and put some values with a formula next to this column.

Y was testing an expression with this

msg = IIf(target.End(xlUp).Value = "X", "is this a LETTER", "is this a DIGIT")

View 3 Replies View Related

Sorting By First Digit Only

Sep 21, 2006

I am trying to sort a spreadsheet in descending order of a certain column. I have been able to do so quite easily in the past. However, for some reason, when I am trying to sort it now, it is sorting based only on the first digit of the number in the cell. For example, the order after sorting may end up as 90, 9, 9, 82, 8, 8, 8, 74, etc. I don't know what happened to cause the change, or how to fix it.

View 6 Replies View Related

Add Specific Number In A Digit?

Jun 9, 2014

Well I want to add few numbers in a few number for example I have ten columns containing few cell numbers and i want to add 92 my country code with it. I have tried this by using replace formula but in result it comes in text format from which i cannot use another formula unless text format is removed and for that i have to do it one by on in every single cell. I have attached a sample sheet.

View 4 Replies View Related

Return First Digit In Cell Value

Aug 23, 2014

Imagine a cell has a value of "008281" at A1

I want to return the first digit of the 6 digits in A1 which will be "0" in A2.

I tried using the formulae in A2 with "=left(A1,1), it returns "8" instead.

View 2 Replies View Related

Add The First Digit In Range Of Cells?

Dec 10, 2013

I have data in cells A1:Z1. The data is all 1 digit numbers, but sometimes they have asterisks behind the number. For instance in cell A1, I have 4, but in B1 I have 3**. I want to take the first digit of each cell and add it together and the result to be in AA1. The only thing I can think of doing is =SUM(LEFT(A1), LEFT(B1)...) but that's going to take too long (especially as I add columns).

View 3 Replies View Related

Counting Occurrences Of Particular Digit

Dec 12, 2008

I have a slight problem...I have a range of values..

0113
1240
8430
0903

I need to count the occurance of a a particular no. from 0-9.. So i want to know how many times say 0 appears in that range of values etc so on till 9. I tried using CountIF but the problem i face is lets say in my cell 0903 there are 2 0s inside, it doesnt count this 2 zero..

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved