add number to the middle of an existing number

thedeadzeds

Active Member
Joined
Aug 16, 2011
Messages
442
Office Version
  1. 365
Platform
  1. Windows
Hi Guys,

Is it possible to add a number into the following. It currently looks like CC/748125 but i need it to show CC/00748125 so a double zero after the /

Thanks
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
easiest way would be use find/replace ( CTRL + F key click replace tab)

in find box type CC/ in replace box type CC/00
 
Upvote 0
having had some more coffee my offered solution would only work once if used the second time it would replace CC/00123456 with CC/0000123456

depending on the amount of changes needed would have to look at other options

you could apply my method 9 times using find CC/1 CC/2 etc.

or maybe for formula option

Code:
=IF((LEFT(A3,5))<>"CC/00",REPLACE(A3,1,3,"CC/00"),A3)
 
Upvote 0

Excel 2010
EF
4CC/748125CC/00748125
5ABC/902839ABC/00902839
6A/093049A/00093049
7283924283924
8Acplf/09209303Acplf/0009209303
Sheet1



Excel 2010
F
4CC/00748125
Sheet1
Cell Formulas
RangeFormula
F4=IF(ISERR(FIND("/",E4)),E4,SUBSTITUTE(E4,"/","/00"))
 
Upvote 0
lots of straight forward solutions Great work Guys (&/or Gals)

i offered my second solution based on lack of examples

some may already be correct numbers

if this is a growing data set and we have replaced the first 100 records and then add 100 new records running the solutions would increase the already correct numbers with an extra 00

i am only offering this reply to highlight this please don't think i am trying to appear to be the smarter one ...

at least 2 of those replying have and do teach me regularly,

it is part of this teaching that has taught me to look for the obvious error as the users of our masterpieces will break them at every opportunity.
 
Upvote 0

Forum statistics

Threads
1,214,534
Messages
6,120,086
Members
448,944
Latest member
sharmarick

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