JHawks8221
New Member
- Joined
- May 12, 2017
- Messages
- 9
- Office Version
- 365
Hello, I'm hoping someone might be able to help me please.
I have a project that I am working on where our IT department needs a report that shows all of our companies and product numbers, but next to each product, they would like us to enter "sales exist" if it shows that the product has sales on the second sheet in the book. The first sheet looks as such with all of our company products listed:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]COMPANY NUMBER
[/TD]
[TD="align: center"]PRODUCT NUMBER[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]497[/TD]
[/TR]
[TR]
[TD="align: center"]25[/TD]
[TD="align: center"]513[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]72[/TD]
[/TR]
</tbody>[/TABLE]
The second sheet has the exact same information, but only contains products that we have existing sales. They would like the first page to show "Sales Exists" in the third column, if both the Company Number and Product Number is listed on the second sheet (due to there being the same products existing between multiple companies and some do now have sales):
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]COMPANY NUMBER[/TD]
[TD]PRODUCT NUMBER[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]497[/TD]
[TD]Sales Exists[/TD]
[/TR]
[TR]
[TD]25[/TD]
[TD]513[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]72[/TD]
[TD]Sales Exists[/TD]
[/TR]
</tbody>[/TABLE]
I was trying VLookup, but couldn't get the formulat to work right, right now, I'm using this formula:
=IF(ISNA(MATCH(B2,WithSales!B$2:$B$333,0)),"", "Sales Exist")
which does return the results I'm looking for... however because we have multiple companies that use product number 497 it states that sales exist across all companies, even though the second sheet states only company 01 shows sales for this product.
I know this is probably an easy fix. I've searched many pages and videos but I was unable to find anything that I could get to work. Would anyone be able to help me with this please? Thank-you very much!
I have a project that I am working on where our IT department needs a report that shows all of our companies and product numbers, but next to each product, they would like us to enter "sales exist" if it shows that the product has sales on the second sheet in the book. The first sheet looks as such with all of our company products listed:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD="align: center"]COMPANY NUMBER
[/TD]
[TD="align: center"]PRODUCT NUMBER[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]497[/TD]
[/TR]
[TR]
[TD="align: center"]25[/TD]
[TD="align: center"]513[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD="align: center"]72[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]COMPANY NUMBER[/TD]
[TD]PRODUCT NUMBER[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]497[/TD]
[TD]Sales Exists[/TD]
[/TR]
[TR]
[TD]25[/TD]
[TD]513[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]72[/TD]
[TD]Sales Exists[/TD]
[/TR]
</tbody>[/TABLE]
I was trying VLookup, but couldn't get the formulat to work right, right now, I'm using this formula:
=IF(ISNA(MATCH(B2,WithSales!B$2:$B$333,0)),"", "Sales Exist")
which does return the results I'm looking for... however because we have multiple companies that use product number 497 it states that sales exist across all companies, even though the second sheet states only company 01 shows sales for this product.
I know this is probably an easy fix. I've searched many pages and videos but I was unable to find anything that I could get to work. Would anyone be able to help me with this please? Thank-you very much!