if statement - if name is on list and it has a $$ value

ajm

Well-known Member
Joined
Feb 5, 2003
Messages
2,056
Office Version
  1. 365
Platform
  1. Windows
folks,

I need to set a Yes or No flag for a list of vendor numbers based upon whether or not they appear in another sheet and have an associated positive dollar value. I use this Yes/No flag to decide which statements I have to create and print at the end of each month.

Currently, I use a formula to match the vendor number to the second sheet:
Code:
=IF(NOT(ISERROR(MATCH(M72,'EFT Payments (No Vendor Nbr)'!J:J,0))),"No","Yes")[\code]
where column M contains a list of vendor numbers and column J on the other sheet has a similar list of numbers. so, if the number doesn't match, set the flag to No. 

this produces a large number of Yes flags where the vendor exists on the second sheet but may have no activity for the current month.

any suggestions?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Try this


[TABLE="width: 850"]
<tbody>[TR]
[TD][/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]=IF(SUMPRODUCT(('EFT Payments (No Vendor Nbr)'!J2:J15=M72)*(MONTH('EFT Payments (No Vendor Nbr)'!F2:F15)=MONTH(TODAY())))>0,"Yes","No")[/TD]
[/TR]
</tbody>[/TABLE]


Change "F" to the column where you have your dates on the sheet "EFT Payments (No Vendor Nbr)"
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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