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
Related
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)))
i am using vlookup and want to have the latest date to be picked from multiple entries as listed below, please advise if any one can help in this regard.
Now i want to pick latest date for ALi, Mubeen and Nadeem from the corresponding column of date. e.g i can pick Ali and latest date for this one is 5-Dec-20.
Please advise.
i think if your concern is only for Min value, then best method will be to do it by pivot tables.
Drag name to columns and date to values in pivot tables. Now convert the date value to Minimum. This will get the things done.
Hope the query is clear.
You can use following array formula:
=MAX(IF($A$2:$A$10=D2,$B$2:$B$10))
Array formula after editing is confirmed by pressing ctrl + shift + enter
You can put all the dates in a hidden column and get the min value like this:
The red cells formula: =IFERROR(INDEX($B$3:$B$13, SMALL(IF(D$2=$A$3:$A$13, ROW($B$3:$B$13)-2,""), ROW()-2)),"")
The blue cell formula: =MIN(D3:D6)
You can use the MAXIFS function,
=MAXIFS(B3:B6,A3:A6,C2)
I want to perform Incremental Addition in excel as below
Initial A1
Next-Day will be A1+A2
After That A1+A2+A3 so on ...
Can anyone please help me getting formula for the same. How I can do in excel
Thanks
You can do this by using a mix of relative and fixed cell references in Excel.
Put this SUM formula in B1 cell and drag it down till your entries in column A
=SUM($A$1:A1)
How do I increment just one number in a formula?
Here is my formula
=LOOKUP(C1-1,B3:B365,D3:D365).
I want to drag the formula along the row so that just the one number increases by one increment for each cell accross.
So the next cell would read
=LOOKUP(C1-2,B3:B365,D3:D365).
Here is a little abuse that will do what you need:
=LOOKUP($C$1-ROW(1:1),$B$3:$B$365,$D$3:$D$365)
assuming you are dragging down.
If you would drag to the right, you would have to substitute ROW(1:1) by COLUMN(A:A)
You can fix rows like this:
...,B$3:B$365,D$3:D$365
Thanks for all you help guys, but the formula requirements changed, but I managed to find out how to do what I needed to do in the end.
I used another cell reference form the row above the formula to increment the part of the formula that required it.
I needed to develop it further though so that the #N/A's were ignored.
The formula eneded up as --->
=IFERROR(LOOKUP($C$1-B371,$B$3:$B$365,$D$3:$D$365),"")
Thanks for all your suggestions though. I find these support communities veru useful and will use them a lot more often in the future.
i need to set position in position column depending upon percentage column.
i also have asap utilities. Kindly share formula for this.
You want the Rank() function.
As in
=RANK(C2,$C$2:$C$10)
starting in D2 and copied down.
try this
=SUMPRODUCT(1*(COUNIF(OFFSET(A$1,,,ROW(A$1:A$10)-ROW(A$1)1),A$1:a$10)+1)*(A$1:A$10>=A1))
use attributes according to your need.