Formuala to return "account Paid" if no match

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,570
Office Version
  1. 2021
Platform
  1. Windows
I have tried to set up a formula so that where the No. in Col J in the destination workbook is not on Col F on the source workbook, then "Account paid" to be returned. If the account No. in Col Jis found in Col F in the source data, Then "account not settled" to be returned

It would be appreciated if someone could kindly amend my formula



Code:
=IFERROR(IF(VLOOKUP(J2,'[Creditors.xlsm]Imported Data'!$F:$F,1,0),"Account Paid")<>"account Paid","account not settled")
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
If you want to return Account Paid/Account not settled based on whether the value in J is found in column F on 'Imported Data' try this.

=IF(ISERROR(MATCH(J2,'[Creditors.xlsm]Imported Data'!$F:$F,0)),"Account not settled", "Account Paid")
 
Upvote 0
Oops, got it the wrong way round.:eek:
 
Upvote 0
Sorry meant to inform you that I picked it up that it should have been the other way around
 
Upvote 0

Forum statistics

Threads
1,216,184
Messages
6,129,377
Members
449,506
Latest member
nomvula

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