How to use IF and IFERROR together

MLSNetworks

New Member
Joined
Jun 6, 2019
Messages
17
Hello - I need advice/help using an IF and IFERROR formula together.

I pull account data each week with tabs for the individual week in the worksheet and I want to do a compare between the current week and the previous week to see what text has changed from week to week on all the accounts (~100).

I came up with the following formula using an IF formula and a VLOOKUP to show TRUE or FALSE if the text for that account is the same as the previous week (i.e., TRUE if the text is unchanged and FALSE if the text is different) and this works perfectly. But there are situations where Week 1 has no text and Week 2 has text and in those cases, I get an #N/A (error) in the cell so I want to put in an IFERROR to show the word FALSE when this happens.

However, using the following formula returns a 0 and not the word FALSE and also gives me a circular reference. What am I doing wrong and what would be the right formula to use?

=IF(VLOOKUP(B15,'Dependency Cert Data 1-20'!B:N,3,FALSE)=D15,"TRUE","FALSE")=IFERROR(T15,"FALSE")

Thank you for any help!
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
You shouldn't need IF for that, just IFERROR.

=IFERROR(VLOOKUP(B15,'Dependency Cert Data 1-20'!B:D,3,FALSE)=D15,FALSE)

I've also change B:N to B:D. Having the range extended past the columns that are being used does nothing more than make the formula inefficient.
As you say there are ~100 accounts, I assume that you only have ~100 rows of data, in which case you could make the formula more efficient by changing B:D to $B$1:$D$200 (200 rows of data) excluding the other 1 million plus rows that are not needed.
 
Upvote 0
Solution
Thank you, Jasonb75! That worked perfectly. I was obviously making the formula too complicated. Thank you so much for simplifying it ;)
 
Upvote 0

Forum statistics

Threads
1,214,877
Messages
6,122,051
Members
449,064
Latest member
scottdog129

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