Match a Value in a Cell

emisa

New Member
Joined
Jan 12, 2014
Messages
29
Office Version
  1. 365
Platform
  1. MacOS
Hi there,

I am trying to use the formula below ("=" omitted), to find and match a value from two different cells and return with a certain value respectively. I have the reference cell from a different sheet containing a name of the staff, and if that is present to column BA, it will show "ACS" which I got, but I have another cell as well on another sheet containing names too that once selected it matches a name in the same column (BA), it must show the "Coor" this time. If "No" matching name found then it must show "blank". I got lost in the argument after getting true value. Thanks in advance.



IF((ISNUMBER(SEARCH(Sheet1!C7,Report!AO9:AO84))),"ACS",IF(ISNUMBER(SEARCH(Sheet1!H6,Report!AO9:AO84)),"Coor")),"")))
2024-12-30C0700-1930Farrell, Jo AFALSE
2024-12-30C0700-1530 Admin DayGilhooly, Andrew JFALSE
2024-12-30C0700-1530 CCLester, Whitney JFALSE
2024-12-30C0700-1730Culverwell, Pamela DFALSE
2024-12-30C0700-1530Jenkins, Nicole AFALSE
2024-12-30C0700-1930Tateishi, SeikoFALSE
2024-12-30C0700-1930Kumar, Poonam SFALSE
2024-12-30C0700-1930Heka, Ninette SFALSE
2024-12-30C0700-1730Devoy, Kathleen LFALSE
2024-12-30C0700-1930Smith, Chloe JFALSE
2024-12-30C0700-1930Brady, Kelly FACS
2024-12-30C0700-1930Gibb, Lochlain JFALSE
2024-12-30C0700-1930Hapalla, Marcelino IFALSE
2024-12-30C0700-1930Murray, Ruby MFALSE
2024-12-30C0700-1930Duff, Charlotte AFALSE
2024-12-30C0700-1930Tonga, PaulineFALSE
2024-12-30C0700-1930Mcarley, Nicola AFALSE
2024-12-30C0700-1930 OrientatiSabaten, Jessica EFALSE
2024-12-30C0700-1930 OrientatiEdwards, Melanie GFALSE
2024-12-30C0700-1930 OrientatiWong-Kam, Emma AFALSE
2024-12-30C0700-1930Ross, Vanessa TFALSE
2024-12-30C0700-1930Paul, NobleFALSE
2024-12-30C0700-1930Buscke, Deborah EFALSE
2024-12-30C0700-1930Shallard, Rebekah GFALSE
2024-12-30C0700-1930Vicentillo, Maria NFALSE
2024-12-30C0700-1930Rojas, Hazel NFALSE
2024-12-30C0700-1930Cherian, AniFALSE
2024-12-30C0700-1930Baby, DenilaFALSE
2024-12-30C0700-1930Fergusson, Karen WFALSE
2024-12-30C0700-1930Abraham, ElbittaFALSE
2024-12-30C0700-1930Kochupurackal Saju, SujaFALSE
2024-12-30C0700-1930George, AnjaliFALSE
2024-12-30C0700-1930Ann Roy, RainaFALSE
2024-12-30C0700-1930Ni****a, NehaFALSE
2024-12-30C0700-1930Joseph, SheejaFALSE
2024-12-30C0700-1930Christophers, Yvonne SFALSE
2024-12-30C1900-0730Kindness, Sarah-Anne AFALSE
2024-12-30C1900-0730Penano, Christopher JFALSE
2024-12-30C1900-0730Chand, Reshmi LFALSE
2024-12-30C1900-0730George, ChinchuFALSE
2024-12-30C1900-0730Pathalankunnan, SouminaFALSE
2024-12-30C1900-0730Eapen, JancyFALSE
2024-12-30C1900-0730Joseph, JiniFALSE
2024-12-30C1900-0730Raju, RincyFALSE
2024-12-30C1900-0730Elizabeth Varghese, SijiFALSE
2024-12-30C1900-0730Kalladayil, Binu MFALSE
2024-12-30C1900-0730Kudilpurayidathil, Preethirani CFALSE
2024-12-30C1900-0730Jiang, Phylicia FFALSE
2024-12-30C1900-0730Nur, Shabina BFALSE
2024-12-30C1900-0730Banayos, Grace EFALSE
2024-12-30C1900-0730Crawley, Jonathan LFALSE
2024-12-30C1900-0730Akauola, Kafoatu MFALSE
2024-12-30C1900-0730John, JainyFALSE
2024-12-30C1900-0730Mathews, AshaFALSE
2024-12-30C1900-0730Misa, EddiesonFALSE
2024-12-30C1900-0730Sahadevan, SavanthFALSE
2024-12-30C1900-0730Bernabe, Jourel CFALSE
2024-12-30C1900-0730Paea, Taeario RFALSE
2024-12-30C1900-0730Manuokafoa-Manderson, Ellen RFALSE
2024-12-30C1900-0730Kuriachan, HoneyFALSE
2024-12-30C1900-0730Sarasakshan Pillai, ArunFALSE
2024-12-30C1900-0730Altena, Paul GFALSE
FALSE
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi emisa,

I would writ the following formula: *I am using the French version of Excel 365, so there might be some errors due to manual translation or discrepancies in the Excel user manual*

Excel Formula:
=IF(IFERROR(MATCH(Sheet1!$C7,Report!$A$O9:$A$O84,0),0)>0,"ACS",IF(IFERROR(MATCH(Sheet1!$H6,Report!$A$O9:$A$O84,0),0)>0,"Coor",""))

There's a lot of difference between what you ask and what is in your formula. So if the formula in the table is wrong, here's what I would do based on what you asked:

Imagine you have the name in cell C7, the first sheet returning ACS is named SheetWithName1 and second sheet returning Coor is named SheetWithName2

Excel Formula:
=IF(IFERROR(MATCH(SheetWithName1!$C7,Report!$A$O9:$A$O84,0),0)>0,"ACS",IF(IFERROR(MATCH(SheetWithName2!$C7,Report!$A$O9:$A$O84,0),0)>0,"Coor",""))

Bests regards,

Vincent
 
Upvote 0
Another possible option
Excel Formula:
=IF(COUNTIFS(Report!AO9:AO84,Sheet1!C7),"ACS",IF(COUNTIFS(Report!AO9:AO84,Sheet1!H6),"Coor",""))
 
Upvote 0
Solution
Good Day Guys!!!

Thanks for all your prompt replies.
I have had a go with both of the formula but I am not quiet getting the the right result as per BB and BC (match and Counifs). There's must be something I missed explaining my argument but I ll hav another go and reuploaded I more sensible sheet.
Sorry I cut the row a little short. I moved the referenced cells (two different cells with two different names "BI8, BJ8") instead. If the names on these cells match on the list of names in Column AO, the cells next to their name (same row) should show "ACS" or "Coor" as in column BD, and there rest should only be blank.
Thanks for all your time!!!

CoorACS
RESULTREFERENCE CELLSFergusson, Karen WBrady, Kelly F
2024-12-30C0700-1930Farrell, Jo AACSACS
2024-12-30C0700-1530 Admin DayGilhooly, Andrew J
2024-12-30C0700-1530 CCLester, Whitney J
2024-12-30C0700-1730Culverwell, Pamela D
2024-12-30C0700-1530Jenkins, Nicole A
2024-12-30C0700-1930Tateishi, Seiko
2024-12-30C0700-1930Kumar, Poonam S
2024-12-30C0700-1930Heka, Ninette S
2024-12-30C0700-1730Devoy, Kathleen L
2024-12-30C0700-1930Smith, Chloe J
2024-12-30C0700-1930Brady, Kelly FACS
2024-12-30C0700-1930Gibb, Lochlain J
2024-12-30C0700-1930Hapalla, Marcelino I
2024-12-30C0700-1930Murray, Ruby M
2024-12-30C0700-1930Duff, Charlotte A
2024-12-30C0700-1930Tonga, Pauline
2024-12-30C0700-1930Mcarley, Nicola A
2024-12-30C0700-1930 OrientatiSabaten, Jessica E
2024-12-30C0700-1930 OrientatiEdwards, Melanie G
2024-12-30C0700-1930 OrientatiWong-Kam, Emma A
2024-12-30C0700-1930Ross, Vanessa T
2024-12-30C0700-1930Paul, Noble
2024-12-30C0700-1930Buscke, Deborah E
2024-12-30C0700-1930Shallard, Rebekah G
2024-12-30C0700-1930Vicentillo, Maria N
2024-12-30C0700-1930Rojas, Hazel N
2024-12-30C0700-1930Cherian, Ani
2024-12-30C0700-1930Baby, Denila
2024-12-30C0700-1930Fergusson, Karen WCOOR
2024-12-30C0700-1930Abraham, Elbitta
2024-12-30C0700-1930Kochupurackal Saju, Suja
2024-12-30C0700-1930George, Anjali
2024-12-30C0700-1930Ann Roy, Raina
2024-12-30C0700-1930Ni****a, Neha
2024-12-30C0700-1930Joseph, Sheeja
2024-12-30C0700-1930Christophers, Yvonne S
2024-12-30C1900-0730Kindness, Sarah-Anne A
2024-12-30C1900-0730Penano, Christopher J
2024-12-30C1900-0730Chand, Reshmi L
2024-12-30C1900-0730George, Chinchu
 
Upvote 0
Good day folks!

Please disregard my latest post. I have finally get my head around the formulas and they both worked well. Thanks heaps!!!

I am feeling though that there is something I definitely needing soon. But for now thanks for all your help @Fluff and @vincent.
 
Upvote 0

Forum statistics

Threads
1,225,627
Messages
6,186,100
Members
453,337
Latest member
fiaz ahmad

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