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

ajm

Well-known Member
Joined
Feb 5, 2003
Messages
2,004
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

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Try this


Formula
=IF(SUMPRODUCT(('EFT Payments (No Vendor Nbr)'!J2:J15=M72)*(MONTH('EFT Payments (No Vendor Nbr)'!F2:F15)=MONTH(TODAY())))>0,"Yes","No")

<tbody>
</tbody>


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

Forum statistics

Threads
1,213,490
Messages
6,113,957
Members
448,535
Latest member
alrossman

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