How to copy specific word or number from cell? - excel-formula

I have pasted below values which are in a cell, i want to copy only cell numbers from this cell. Please guide how i can do this in excel.
Cell value:
"1. MEMBER ID 2100002-2 PRIME COLOUR TRADING COMPANY STREET# 5, KUTCHERY BAZAR, FAISALABAD TEL : 041-2626573,2622644 MOBILE : 0300-8652090 FAX : 041-2622675"
Regards,
Adnan

try,
=REPLACE(REPLACE(A2, 1, FIND("MOBILE : ", A2)+8, TEXT(,)), 13, LEN(A2), TEXT(,))

Related

Return Date above the Certain "TEXT" from the "NAME" in (Excel2021)

Good Day to you,
Is it possible to do the formula without any addons like Vstack or Hstack, just the normal excel 2021.
QUESTION
I want to Find the PH 1 taken with different year for certain Name
In Sheet "Public Holiday" If I put the year next to PH 1, Example "PH 1 (2021)". it can return the value but I need match with the 'NAME"
I want to keep the PH 1 Separately from the year
Example:
Name: Mary CELL(B5)
Search For: PH 1 (2021) - CELL (C3)&(C2)
Within: Sheet January,February,March
Return: Sheet "Public Holiday" into CELL "C5"
Example 2:
Name: Billy CELL (B12)
Search For: PH 5 (2022) - CELL (G11)&(C10)
Within: Sheet January,February,March
Return: Sheet "Public Holiday" into CELL "G12"
PUBLIC HOLIDAY
in CELL D4
=IF(COUNTIF(January!$C$4:$I$12,D3),MIN(IF(January!$C$4:$I$12=D3,January!$C$3:$I$3,"")),"")
in CELL C12 =IF(COUNTIF(January!$C$4:$I$12,C11),MIN(IF(January!$C$4:$I$12=C11,January!$C$3:$I$3,"")),"")
JANUARY
so Basically I am trying to let's say find in SHEET 'Public Holiday' CELL(C3)&CELL(C2) Matching the name of the person in SHEET 'January to March' return the Value to CELL(C4)
FEBRUARY
MARCH
Please help me with this
I hope I made the question right to understand
Thank you very much

How to find a specific number in a string of numbers in Excel

I am looking for help with a formula in Excel to find a specific number in a string of numbers.
Our accounting system pulls a report showing numbers from 1 to 10 and each line can have numerous numbers listed in the cell, each separated with a ";".
What I want to do is create a formula that allows me to simply look for the number in columns O to X (row 3) and fill that number in the corresponding cell.
So starting from row 4, I would like to create a formula that finds each number in the string and simply fills in the one I am looking for in each cell, for example I would like the end result to look like the below example:
If the number doesn't appear then that column is left blank, but if it is found it simply adds itself into the corresponding column.
Hopefully someone out there can help me with this.
Regards;
Greg
formula in B3
in German:
=WENN(ISTFEHLER(FINDEN(";" & B$2 & ";"; ";" & $A3 & ";"));"";B$2)
in English:
=IF(ISERROR(FIND(";" & B$2 & ";" , ";" & $A3 & ";")),"",B$2)
Try this in cell O4:
=IF(NOT(ISERROR(SEARCH(O$3,$N4,1))),O$3,"")
Notes:
Assumes your numbers 1 to 10 are in row 3 (i.e O3:X3)

Count number of cells with specifc text and specific colour in excel range where the text is derived from another column

Perhaps easier looking at the data,
I basically need to know how many cells in red are under each country using a formula or VBA. I was able to get a function off the internet which counts the total number of red background cells but this does not do the job. I need the number of red cells by country. My output should look like this,
Any help would be highly appreciated!
Here is a formula solution without helper column, please see
1] Assume "Source table" put in A1:B26 include "Status" column filled with red and green background color
2] "Output table" put in A29:B34 include criteria country put in range A30:A34 (Argentina, China, Australia....)
3] In "Output" header criteria B29, of wording "RED" must filled with red background color
4] "Output" select B30 >> Define Name >>
'>> Name : CountColor
'>> Refer to :
=SUMPRODUCT(($A$2:$A$26=$A30)*(GET.CELL(63,IF(1,+OFFSET($B$2:$B$26,ROW($B$2:$B$26)-ROW($B$2),)))=GET.CELL(63,$B$29)))
Then,
5] In "Output" B30, enter formula and copied down :
=CountColor
6] Finally save file in xlsm type
Edit : Get.Cell is a Excel 4 Macro function, you need to save the file as Macro-Enable Workbook xlsm type.

Excel Index Match Across another workbook whilst using RIGHT and Trim function?

I have a workbook Audit Numbers.xlsm
Column P contains a list of addresses like so:
Address Line 1, Sutton, SM2 78H
Address Line 2, Mitcham, M1 2NN
Address Line 3, Manchester, M15 4GS
In my other workbook, where my formula is going to be, i have column I with just the postcode of an address:
SM2 78H
M1 2NN
M15 4GS
I want to try and use index match to retrieve a value from column I in the audit numbers workbook if the postcode matches. I am using the below formula:
=INDEX('[Audit Numbers.xlsm]Supplier'!$I:$I,MATCH(I4,TRIM(RIGHT(TRIM(RIGHT(SUBSTITUTE('[Audit Numbers.xlsm]Supplier'!$P:$P,",",REPT(" ",LEN('[Audit Numbers.xlsm]Supplier'!$P:$P))),LEN('[Audit Numbers.xlsm]Supplier'!$P:$P))),8))))
But i get a #Value error.
Please can someone show me where i am going wrong?
I'd do it (something) like this instead:
=INDEX(A1:A3,MATCH(1,IFERROR(--(FIND(A6,A1:A3)>0),0),0))
to enter the function press Ctrl+Shift+Enter (rather than just Enter)
(I've placed the formula above in A7)

How to split value of one cell into multiple cells in Excel?

I have Name and Address column in excel looks like a
I want to take City name and Pincode in separate columns like
Secunderabad 500094
warangal 506005
warangal 506005
Is it possible to do in excel? or is there any option for this please let me know
If all are separated with a hyphen, "-", then you could use the Left and Right functions as follows:
=LEFT(A1, FIND("-",A1) - 1)
and
=RIGHT(A1, LEN(A1) - FIND("-",A1))
where A1 is the cell with city and code together, and the Left formula gets the city and the Right formula gets the code.
EDIT
Assuming each cell has CITY- and PHNO- to set off the positions of each, then you could do something like the following.
Get city name:
=TRIM(MID(A1, FIND("CITY-",A1) + 5, FIND("-", A1, FIND("CITY-",A1) + 5) - FIND("CITY-",A1) - 5))
Get code:
=TRIM(MID(A1, FIND("-", A1, FIND("CITY-",A1) + 5) + 1, FIND("PHNO-",A1) - FIND("-", A1, FIND("CITY-",A1) + 5) - 1))
Get phone number:
=RIGHT(A1, LEN(A1) - FIND("PHNO-",A1) - 4)
If a cell doesn't contain a PHNO- or a CITY-, then the formulas will not work.

Resources