=if(match... formula showing as error.

Salimander

New Member
Joined
Sep 25, 2020
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hi everyone, I need some assistance with a formula. I'm trying to look up if a specific value exists in a specific column, but I'm having difficulty with the formula. I used a different formula to get my answer but I just want to understand why my formula wasn't originally working. It says the lookup array is in red.

=if(match(A1,$C$1:$C$100,0)"YES")

here is my formula. I would appreciate any help if I made any mistakes would you be able to tell me what I did wrong as I'm trying to learn how to do things without having to look it up. Thank you in advance!
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Here is the formula on excel
 

Attachments

  • failedattempt.png
    failedattempt.png
    120.5 KB · Views: 4
Upvote 0
Welcome to the Board!

You are missing the comma just before "YES". It should be:
Excel Formula:
=if(match(A1,$C$1:$C$100,0),"YES")
 
Upvote 0
I hate myself. Thank you so much I've been spending 2 hours trying to figure out what was wrong
 
Upvote 0
You are welcome.
Glad I was able to help.
:)
 
Upvote 0
To avoid #NA, for not matched value.

=IFERROR(IF(MATCH(A1,$C$1:$C$100,0),"YES"),"")
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,028
Members
448,940
Latest member
mdusw

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