Formula help

snash

Board Regular
Joined
Jan 12, 2006
Messages
222
Hi there,
I've got a column with lots of customer codes like W456 or w456. I want to be able in another column to take all the codes and add the number 1 to those that are duplicates butjust have a small letter instead of the big letter in front.
Is this possible?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Like this?
Book1
AB
1W456W456
2W456w457
3W456w458
4X100X100
5X100x101
Sheet3
Cell Formulas
RangeFormula
B1:B5B1=IF(COUNTIF($A$1:A1,A1)-1,LOWER(LEFT(A1,1))&RIGHT(A1,3)+COUNTIF($A$1:A1,A1)-1,A1)
 
Upvote 0
Hi there, thanks for coming back to me.
In A1 I have W456. In A2, I have w456. In A3 I have C000 and in A4 I have c000 and so on.
In Column B, how can I add the number 1 to the end of the the small lettered cells. I have about 18000 lines and not all the rows are duplicates (except for the small and capital letter) but there are a lot that are.
Thanks again
 
Upvote 0
How about this in B1 and filled down? I assume you don't mean "ADD" (i.e.., w456 doesn't become w457) but mean "CONCATENATE" a 1??

FuzzyLookup1.xlsm
AB
1W456W456
2w456w4561
3C000C000
4c000c0001
Sheet2
Cell Formulas
RangeFormula
B1:B4B1=IF(EXACT(LEFT(A1,1),LOWER(LEFT(A1,1))),A1&"1",A1)
 
Upvote 0
Solution

Forum statistics

Threads
1,215,494
Messages
6,125,137
Members
449,207
Latest member
VictorSiwiide

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