J
jay
I would like to have some help on this
problem.
Here is a sample of the columns
  A         B             C      D
          M78753        PREECE  F611
          X38050        SAILOR  F813
          I09186        MARTIN  F804
          Q59367        COLLINS F612
          V35010        KINGMAN F611
          U27944        COOKS   F713
          S94262        FORTIN  F904
I run record macro and do a Find and replace.
I want to search for Q59367 in column B
If it finds the number then change that number Q59367 to 1
Next
I do a Find and Replace for w31111 in column B
If it finds the number then change that number w31111 to 2
I do a Find and Replace for S94262 in column B
If it finds the number then change that number S94262 to 3
And so on upto 54 numbers.
Then I do an ascending sort for column B.
This puts all records, in sequence, from 1 to 54 at the top of the
spreadsheet. I then can select 1 to 54, copy and paste where ever.
However, If it fails to find a number it does not place
a record where the next sequence would be.
The result is
AÂ Â Â Â Â Â Â Â Â BÂ Â Â Â Â Â Â Â Â Â Â Â Â Â CÂ Â Â Â Â Â D
      1          COLLINS  F612
      3          FORTIN   F904
1.......54
I can insert a row above the 3 which would give me the
sequence 1 to 54.  That is a pain because many times the Find and
Replace does not find a number and I have to insert many rows.
I know there are many ways to cook this chicken.
I almost have it working.  I know that the IF and Then
statements must come into play here, but I am having a
hard time understanding what goes where.
I have tried the formulas given to me and nothing yet.
I have been reading lots of examples too and I am just not getting
it yet. I will keep at it tell I get it.
What I need is:
IF number found change number to 2
If not then insert row and number cell A2 to 2
Hope this makes it better to understand.
problem.
Here is a sample of the columns
  A         B             C      D
          M78753        PREECE  F611
          X38050        SAILOR  F813
          I09186        MARTIN  F804
          Q59367        COLLINS F612
          V35010        KINGMAN F611
          U27944        COOKS   F713
          S94262        FORTIN  F904
I run record macro and do a Find and replace.
I want to search for Q59367 in column B
If it finds the number then change that number Q59367 to 1
Next
I do a Find and Replace for w31111 in column B
If it finds the number then change that number w31111 to 2
I do a Find and Replace for S94262 in column B
If it finds the number then change that number S94262 to 3
And so on upto 54 numbers.
Then I do an ascending sort for column B.
This puts all records, in sequence, from 1 to 54 at the top of the
spreadsheet. I then can select 1 to 54, copy and paste where ever.
However, If it fails to find a number it does not place
a record where the next sequence would be.
The result is
AÂ Â Â Â Â Â Â Â Â BÂ Â Â Â Â Â Â Â Â Â Â Â Â Â CÂ Â Â Â Â Â D
      1          COLLINS  F612
      3          FORTIN   F904
1.......54
I can insert a row above the 3 which would give me the
sequence 1 to 54.  That is a pain because many times the Find and
Replace does not find a number and I have to insert many rows.
I know there are many ways to cook this chicken.
I almost have it working.  I know that the IF and Then
statements must come into play here, but I am having a
hard time understanding what goes where.
I have tried the formulas given to me and nothing yet.
I have been reading lots of examples too and I am just not getting
it yet. I will keep at it tell I get it.
What I need is:
IF number found change number to 2
If not then insert row and number cell A2 to 2
Hope this makes it better to understand.