MATCH function not MATCHING

craigus51286

New Member
Joined
May 3, 2024
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hi All,

First time post but I am completely at a loss where I have decided to ask the internet for help.

I have two sheets I am working with and want to populate a cell depending on some conditions. E.g. If cell A1 of sheet 1 matches cell B2 of sheet two then cell B1 of sheet 1 will populate itself by copying cell D1 of sheet 2.

I have a much larger formula I am working with but came across an issue that I have whittled down to what I believe is the MATCH function not behaving. My formula works perfectly when trying to match the following as an example, 'ABC-1234-71-0' or 'ABC-1234-71-0 6' however, fails on 'ABC-1234-71-06' which is what I want the formula to match on.

I've spent hours checking everything I could possibly think of. They are an absolute exact match but its just not being seen.

Maybe I am being stupid or I have missed something glaring. With any luck, someone has had this happen to them and can help......
 
In that case the value in A5 exists in more than one row on the Transmittals sheet.
And Either T8 does not ="V" or AS8 is blank.
 
Upvote 0

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
In that case the value in A5 exists in more than one row on the Transmittals sheet.
And Either T8 does not ="V" or AS8 is blank.
Correct, the value in A8 exists in multiple rows with only one of these with the V in T8. It appears the formula is not picking up the V so isn't able to differentiate between them so defaults to a blank cell.
 
Upvote 0
Match will only find the 1st value that matches.
 
Upvote 0
If only one row will have the V in col T try
Excel Formula:
=FILTER(Transmittals!AS:AS,(Transmittals!C:C=A5)*(Transmittals!T:T="V"),"")
 
Upvote 0
If only one row will have the V in col T try
Excel Formula:
=FILTER(Transmittals!AS:AS,(Transmittals!C:C=A5)*(Transmittals!T:T="V"),"")
I couldn't get FILTER to work, maybe my excel version was stopping it. You did highlight my oversight with the MATCH function so thank you so much for that.

I have tried a different approach using LOOKUP which seems to have done the trick or at least in my testing it hasn't gone haywire....

Project Engineering Transmittal Tracker Plan WIP.xlsx
ABCDEF
4Document NumberDocument TitleReceived?Latest Transmittal No.Latest Transmittal Received DateLatest Transmittal Returned Date
5GFC-0306-71-06Private LVAC Dist.Boards ArrangementNo503/05/2024 
6GFC-0306-70-01Private Single Line DiagramNo401/05/202403/05/2024
Master Doc List
Cell Formulas
RangeFormula
D5:D6D5=IFERROR(IF(LOOKUP(2,1/(Transmittals!C:C=A5)/(Transmittals!T:T="V"), Transmittals!AS:AS)="","",LOOKUP(2,1/(Transmittals!C:C=A5)/(Transmittals!T:T="V"), Transmittals!AS:AS)), "")
E5:E6E5=IFERROR(IF(LOOKUP(2,1/(Transmittals!C:C=A5)/(Transmittals!T:T="V"), Transmittals!AP:AP)="","",LOOKUP(2,1/(Transmittals!C:C=A5)/(Transmittals!T:T="V"), Transmittals!AP:AP)), "")
F5:F6F5=IFERROR(IF(LOOKUP(2,1/(Transmittals!C:C=A5)/(Transmittals!T:T="V"), Transmittals!BF:BF)="","",LOOKUP(2,1/(Transmittals!C:C=A5)/(Transmittals!T:T="V"), Transmittals!BF:BF)), "")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C5:C1048576Cell Valuecontains "No"textNO
C5:C1048576Cell Valuecontains "Yes"textNO
C5:C96Cell Valuecontains "Y"textNO
C5:C96Cell Valuecontains "N"textNO
A5:A96Cell Value="please do not use this line - insert one above"textNO
A5:A96Expression=#REF!="CLOSED"textNO




Project Engineering Transmittal Tracker Plan WIP.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBRBSBTBU
7Document NumberRevisionDocument TypeRevision StatusDocument TitleReceived DateTransmittal Ref. No.Issue PurposeRemarksReturned DateTransmittal Ref. N.Review StatusRemarks
8GFC-0306-71-06ADRAWINGPPrivate LVAC Dist.Boards Arrangement02/11/231
9GFC-0306-71-06BDRAWINGSPrivate LVAC Dist.Boards Arrangement16/11/232
10GFC-0306-71-06CDRAWINGSPrivate LVAC Dist.Boards Arrangement02/01/243
11GFC-0306-71-06DDRAWINGSPrivate LVAC Dist.Boards Arrangement08/02/24408/03/24
12GFC-0306-70-01ADRAWINGSPrivate Single Line Diagram08/02/241
13GFC-0306-70-01DDRAWINGSPrivate Single Line Diagram06/02/242
14GFC-0306-70-01EDRAWINGSPrivate Single Line Diagram01/05/243
15GFC-0306-70-01FDRAWINGVPrivate Single Line Diagram01/05/24403/05/24
16GFC-0306-71-06EDRAWINGVPrivate LVAC Dist.Boards Arrangement03/05/245
Transmittals
Cells with Conditional Formatting
CellConditionCell FormatStop If True
BM:BNCell Value="RI"textNO
BM:BNCell Value="NR"textNO
BM:BNCell Value="RC"textNO
BM:BNCell Value="R"textNO
 
Upvote 0
Glad you sorted it & thanks for letting us know.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,021
Latest member
Justyna P

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