#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Excel

I formatted cells as SS# but the formula bar does not reconize the dashed
there for I am unable to do a Vlookup from it. What do I need to do to get
the formula bar to reconize the dashed. What can I do otherwise to get the
Vlook up to work.
Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Excel

VLOOKUP() without the "dashes". For example, if E1 thru F4 contains:

123-45-6789 Jim
123-45-6790 Joe
123-45-6795 John
123-45-6799 Janet

then

=VLOOKUP(123456795,E1:F4,2) displays John
--
Gary''s Student - gsnu200850


"norie" wrote:

I formatted cells as SS# but the formula bar does not reconize the dashed
there for I am unable to do a Vlookup from it. What do I need to do to get
the formula bar to reconize the dashed. What can I do otherwise to get the
Vlook up to work.
Thanks,

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Excel

What I am actually wanting is the dashes to show up in the formula bar as
they do in the cells for the ss# so when I search for that number by a V
lookup I can find it one list has the dashed and shows up one does not. I
have to format the cells to SS# and once I do that they do not show the dash
in the formula bar .... then I am unable to do the VLookup formula because
the row I am looking up has the dashes.
I am unable to remove the dashes as it changes the entire sheet removing the
zeros out of the SS#
Thanks

"Gary''s Student" wrote:

VLOOKUP() without the "dashes". For example, if E1 thru F4 contains:

123-45-6789 Jim
123-45-6790 Joe
123-45-6795 John
123-45-6799 Janet

then

=VLOOKUP(123456795,E1:F4,2) displays John
--
Gary''s Student - gsnu200850


"norie" wrote:

I formatted cells as SS# but the formula bar does not reconize the dashed
there for I am unable to do a Vlookup from it. What do I need to do to get
the formula bar to reconize the dashed. What can I do otherwise to get the
Vlook up to work.
Thanks,

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Excel

Your approach is correct. Right now you have two flavors of ss#'s:

1. ssn# with real dashes - dashes appear in both the cells and formula bar
2. ssn# by format only - the dashes appear only in the cell and not the
formula bar

You need to use a common format.

Say we have a column of values (column E) like 123456789 that only look like
123-45-6789.

In another cell (say Z1) enter:
=LEFT(E1,3) & "-" & MID(E1,4,2) & "-" & LEFT(E1,4) and copy down

Z1 also displays 123-45-6789, but the dashes are real.

Finally copy column Z and paste/special/values back onto column E.
--
Gary''s Student - gsnu200850


"norie" wrote:

What I am actually wanting is the dashes to show up in the formula bar as
they do in the cells for the ss# so when I search for that number by a V
lookup I can find it one list has the dashed and shows up one does not. I
have to format the cells to SS# and once I do that they do not show the dash
in the formula bar .... then I am unable to do the VLookup formula because
the row I am looking up has the dashes.
I am unable to remove the dashes as it changes the entire sheet removing the
zeros out of the SS#
Thanks

"Gary''s Student" wrote:

VLOOKUP() without the "dashes". For example, if E1 thru F4 contains:

123-45-6789 Jim
123-45-6790 Joe
123-45-6795 John
123-45-6799 Janet

then

=VLOOKUP(123456795,E1:F4,2) displays John
--
Gary''s Student - gsnu200850


"norie" wrote:

I formatted cells as SS# but the formula bar does not reconize the dashed
there for I am unable to do a Vlookup from it. What do I need to do to get
the formula bar to reconize the dashed. What can I do otherwise to get the
Vlook up to work.
Thanks,

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"