Iferror Formula Update

JRAMZ88

New Member
Joined
Jun 7, 2017
Messages
28
Office Version
  1. 365
Platform
  1. Windows
Hey guys, hope all of you are doing well!

Im working on an excel formula and I'm looking to tweak it.. right now, the formula below brings in the match.. how do I tweak the formula so if there is a match, to put a "1" in the cell?

=+IFERROR(VLOOKUP((CONCATENATE(A3," - ",B3)),'P1'!A:A,1,0),"0")


Please let me know if this is enough information.. or if I need to provide additional context.


Thank you!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
This Formula returns only 1 or 0 depending if the value was found:
Excel Formula:
=IF(ISNA(MATCH(A3&" - "&B3,'P1'!A:A,0)),0,1)
 
Upvote 1
Thanks Pete! that works perfectly.

As I think this thru, how would we update the formula if there's a match enter "1" and turn the cell green?
If no match and returns "0", turn the cell red?

Can that be done within the formula, or is that more of a conditional format?
 
Upvote 0
Thanks Pete! that works perfectly.

As I think this thru, how would we update the formula if there's a match enter "1" and turn the cell green?
If no match and returns "0", turn the cell red?

Can that be done within the formula, or is that more of a conditional format?
That's Conditional Formatting.

A formula can only change the value of the cell it is in.
 
Upvote 0
You could shorten that a bit if you looked at it from the point of if the value was found vs. if it wasn't.

=--ISNUMBER(MATCH(A3&" - "&B3,'P1'!A:A,0))
 
Upvote 0

Forum statistics

Threads
1,215,072
Messages
6,122,968
Members
449,095
Latest member
Mr Hughes

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