Lookup a value, if there is a corresponding text value, then...

danhendo888

Board Regular
Joined
Jul 15, 2019
Messages
142
Office Version
  1. 365
Platform
  1. Windows
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif][FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]
Book1
AB
3Invoice NumberDocument Number
4M100015100000000
5M10001
6225100000222
722
8
9
10OUTPUT A)
11Invoice NumberDocument Number
12M10001Yes
1322Yes
14
15OUTPUT B)
16Invoice NumberDocument Number
17M100015100000000
18225100000222
Sheet1
[/FONT]

A3:B13 is Table1

Column A is made up of either text or numbers.
Column B is only text format.

How could I go about finding a solution to Output A or Output B (whichever is easier)

Output A would deliver YES if there is a corresponding value in Column B for an invoice number in Column A
Output B would just deliver the document number.

(I paste the data in Table1 so that my formulas are dynamic and I don't have to keep updating the row ranges.
Hoping I could the same thing here)
[/FONT]
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Not much test data to go on.
Does the document number occur once only in column B for each occurrence of the invoice number? Based on your small amount of test data the answer is Yes.
So this works based on your test data.

in B17
=SUMIF(A$4:A$7,A17,B$4:B$7)
copy to B18

in B12
=IF(B17<>0,"Yes","No")
copy to B13
 
Last edited:
Upvote 0
Thank you, that works perfectly for me.
I was looking for the: <>0 in your formula.
 
Upvote 0

Forum statistics

Threads
1,214,403
Messages
6,119,309
Members
448,886
Latest member
GBCTeacher

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