I've been brainstorming on how reformat a set of characters in Excel. The following is a list of MAC addresses:
c00123837da2
c00685208b9f
c00f39fb0303
c017e60c20dc
c01de4084d1d
c020f0caf1db
c02719661782
c02b2924603d
c02f76701db5
I need them to be in a certain format. As an example for number one I have c00123837da2 and I want it to be formatted as C0:01:23:83:7D:A2.
I would really appreciate any guidance you guys might have on how to achieve that because I have 25,000 entries to reformat.
Thank you!
If one has TEXTJOIN():
Formula in B1:
=TEXTJOIN(":",,MID(UPPER(A1),{1,3,5,7,9,11},2))
In B1, formula copied down :
=REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(UPPER(A1),3,,":"),6,,":"),9,,":"),12,,":"),15,,":")
If you do not have TEXTJOIN() then try CONCATENATE() function. B1 formula is
=UPPER(CONCATENATE(MID(A1,1,2),":",MID(A1,3,2),":",MID(A1,5,2),":",MID(A1,7,2),":",MID(A1,9,2),":",MID(A1,11,2)))
Related
I have Data range full of letters and want a dynamic count in excel when a filter is applied.
I used following formula for numbers
=SUMPRODUCT(SUBTOTAL(3, OFFSET($FW$40:$FW$144, ROW($FW$40:$FW$144)-MIN(ROW($FW$40:$FW$144)),,1)), ISNUMBER(SEARCH(1,$FW$40:$FW$144))+0)
I thought of changing the last part to look for a text e.g."A" would work but unfortunately it doesn't work.
Can somebody show me a formula on how I can do this when my data is all letters?
Thanks in advance!
After a lot of reading I worked out you can use -- to search for text.
My formula works... Thanks
I am new to Excel I have a around 3000 purchase numbers and I need add ' before and after the numbers, and I need a , after each row's closing '.
Eg:
'18-0000319-000',
'44-000000123-000',
'55-00000456-010',
Don't know how to do in Excel please help me on this.
Thanks in Advance
Assuming you have data in C3, here is the formula that will do the trick:
="'"&C3&"',"
and you may then drag it down.
One of two/three (depending on version) ways to achieve this. Assuming your purchase numbers are in A2 down:
="'"&A2&"',"
=CONCAT("'",A2,"',") Newer versions of Excel uses this as well
=CONCATENATE("'",A2,"',") This is the older version of excel's Concatenate formula
I would like to ask how to format the cell in MS Excel.
I have a text "AB12122" and I would like to format into "AB12-122" without using any formula.
Is this possible?
Thank you in advance.
I just dug around Google, and it looks like the only way to do it is with a formula. The custom formatting is really only useful for numbers. I can however make it say AB12122AB12122AB12122AB12122-AB12122AB12122, if that's helpful. :)
Why can't you use a formula?
You may use character masking under Format Cells > Custom.
So, what I need is to show SUMPRODUCT of two cell ranges? Both of these cell ranges, that is, each cell contains formula in it. From this formulas I get some number in the cells. This is the way I'm doing it right now:
=SUMPRODUCT((S7:S1000)*(T7:T1000))
and because of formulas I get error A value used in the formula if of the wrong data type
How could I solve this problem? Is there some kind of way to read just number in the cell and not the formula?
Thanks
Replace the "*" with a comma (",").
I've had so much problems with this and in the end it was that instead of comma(",") I needed to use semicolon(";"). Maybe its up to Excel version, I'm using 2010?! So, solution was:
=SUMPRODUCT(S7:S1000;T7:T1000)
I am working on an excel file, and i am trying to use a nested if formula to achieve what i would like.
i have two columns:
A B
condition is this:
if the value in a2=a3, then check if the minus of b2 and b3 is certain value, and if it is, put a yes, else put a no. this will iterate till the end of the excel file.
so far here is what i have. not sure how to use the excel formulas. any help is much appreciated.
if(a2=a3,b2-b3=5 or b2-b3=-5 or b2-b3=20 or b2-b3=-20, "yes", "no")
This works:
=IF(A2=A3,IF(OR(B2-B3=5,B2-B3=-5,B2-B3=20,B2-B3=-20),"yes","no"),"no")
Possibly use ABS function here..
=IF(AND(A2=A3,OR(ABS(B2-B3)={5,20})),"yes","no")