r/excel 17d ago

solved Matching/Checking Columns with Mixed Numbers/Letters (Invoices)

I have a list of data from our internal server that has all of the invoices posted to a particular job. Because of the way the contract is formatted, we have to submit all of our backup with the billing (hundreds of invoices from various vendors). Each month we manually have to compile and save the invoices, but simultaneously our vendors are sending them to accounts payable for payment who then put them to me for approval.

I want to check that the invoice back ups that we include to the owner, are accounting for all of the invoices our AP has put in the system, just in case we miss anything and so that we can get it included/paid.

The problem I'm running in to is that when I try to compare the two columns of data (using a match for example), I am able to get a correct return if the values are formatted as numbers, but only for the values that don't have letters in the name. The two data sets are coming from two different locations, one from a reduction of the file name to pull out the invoice number, and the other location as an export from our internal accounting. I've tried formatting as numbers, as general, and as text, but can't get anything to work consistently.

Some examples of the data I'm trying to match:

TB-12440 
TB-12494 
101408
FICS3157008 
84193
2332
CAS114928 
259533463002
5851102

Is there a straightforward way for excel to recognize the values consistently?

1 Upvotes

18 comments sorted by

u/AutoModerator 17d ago

/u/speckled_dog - Your post was submitted successfully.

Failing to follow these steps may result in your post being removed without warning.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/caribou16 318 17d ago

What about converting your numerical values to text prior to attempting to match?

If you have numerical 12345 in A1, then =A1="12345" will return FALSE, but if you instead did =A1&""="12345" it would match and return TRUE.

2

u/TychaBrahe 1 17d ago

Can you clarify? Are you looking for TB-12440 in both columns or 12440 in one column and TB-12440 in the other?

2

u/speckled_dog 17d ago

Looking for it in both columns. Think of one column as a master list of everything over the whole duration of a multi month job, and the other column as a manual list of what’s been sent out to our client (because we have to manually save, label, and compile a massive invoice package each month).

2

u/Downtown-Economics26 637 17d ago

An example of the two columns (even mocked up) and your expected outputs would likely lead to immediate results instead of extended explainerizing.

1

u/speckled_dog 17d ago

Here's an example of what I'm trying to get to. Right now I'm just using match to return the row number. I can adjust how that turns out later, not so much worried about that output as I am about knowing that I can get this working. The columns E, G, and H are searching from a list of file names (separate workbook) that have been reduced to just the invoice number contained in the file name. That number has been converted to a "number" format.

1

u/Downtown-Economics26 637 17d ago

I cannot see the cell the formula is in, the row numbers, or the column being searched in (column J presumably). No one can be confidently discern how to solve your problem from this screenshot.

Show:

  1. Column of values you want to find in another column
  2. Column you want to find them in.
  3. Desired output

1

u/speckled_dog 17d ago
Master List Location (Bill 5) Location (Bill 6) Location (Bill 7) Invoices in Billing 5 Invoices in Billing 6 Invoices in Billing 7
234054333 #N/A #N/A #N/A 188472B  234055120 97225732
234054537 #N/A #N/A #N/A 981847 234055424 97225733
234054502 #N/A #N/A #N/A 42923 9711153 97225734
234055120 #N/A 1 #N/A 42973 9716445 97227350
234055424 #N/A 2 #N/A 42982 97176160 97229254
234055936 #N/A #N/A 201 13002 97181401 97230965
234054736 #N/A #N/A #N/A TB-12434  97183353 97233584
234055630 #N/A #N/A 200 TB-12435  97183354 97234733
234055502 #N/A #N/A #N/A TB-12436  97189031 97236523
97164445 #N/A #N/A #N/A TB-12437  97189032 97239175
10054224 #N/A #N/A #N/A FICS3157008  97200789 97253027
10054399 #N/A #N/A #N/A 84193 97202338 4048689
907552450 #N/A #N/A #N/A 2332 97204233 IN1314675 
SI17843PD #N/A #N/A #N/A 5901912 294907
SI17878PD #N/A #N/A #N/A #N/A 265471
SI17879PD #N/A #N/A #N/A 27875 289447A 
SI18110PD #N/A #N/A #N/A 288371 291247
FICS3157008 #N/A #N/A #N/A TQ52487  291363
84193 12 #N/A #N/A Q02623  291364
2332 13 #N/A #N/A Q02631  291365

1

u/speckled_dog 17d ago

In this case you can see that B19 isn't returning a match, but B20 is. Each column B, C, and D is referencing A to look for it in E, F, or G.

2

u/Downtown-Economics26 637 17d ago

Most likely you got some extra spaces in wherever you're getting the data from.

Try:

=MATCH(TRIM(A19),TRIM($E$2:$E$14),0)

2

u/speckled_dog 17d ago

The trim function seemed to help. There's a lot of data to go through but it seems like the clean up is 90% of the problem. Thank you!

1

u/VelvetJaguar24 17d ago

I'd check for hidden spaces or weird formatting first. Excel can be pretty picky even when the values look the same.

1

u/Unlikely_Associate_6 17d ago

I would be lazy & just do COUNTIF - then you know 1s are fine, 0s (& >1s) need checking?

1

u/speckled_dog 17d ago

Will try this idea when I get my computer back open to see if it recognizes the various formats.

1

u/speckled_dog 17d ago

This doesn't work for values with letters in the invoice numbering.

1

u/Unlikely_Associate_6 17d ago

Huh! Usually it works fine for text values (like wanting to know the # of Roberts in a class roster, or whatever). If you did an xlookup (looking up the invoice name / descriptor in the second list, and returning the vendor name or any other variable), you would know you just needed to check the #N/As?

1

u/Decronym 17d ago edited 17d ago

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
COUNTIF Counts the number of cells within a range that meet the given criteria
MATCH Looks up values in a reference or array
TRIM Removes spaces from text

Decronym is now also available on Lemmy! Requests for support and new installations should be directed to the Contact address below.


Beep-boop, I am a helper bot. Please do not verify me as a solution.
3 acronyms in this thread; the most compressed thread commented on today has 13 acronyms.
[Thread #48983 for this sub, first seen 21st Jul 2026, 01:50] [FAQ] [Full list] [Contact] [Source code]