Using an If statement with the Match Function

Dave Lucas

New Member
Joined
Dec 15, 2003
Messages
7
I want to use an if statement described below
(IF(MATCH(U5,$AJ5:$BB5,0)>0,U5,if(another statement)) where if the cell u5 is in the listed range then the value of the cell is u5 if it is not then nest another if statement. The problem if the first match does not work it returns an "#N/A" and the second part of the if statement does not kick in. How do I use a qualifier that will recognize the "#N/A" so that the second part of the if statement works?

Thanks

Dave
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
IML,
Could you help me understand what the "isnumber" function does in the above statement. I had somewhat of the same issue as Dave and used the isnumber function to make it work after reading this thread. Thank you for helping me solve my issue btw, I just need a better understanding how this works.

Thank you,
Brian
 
Upvote 0
IML,
Could you help me understand what the "isnumber" function does in the above statement. I had somewhat of the same issue as Dave and used the isnumber function to make it work after reading this thread. Thank you for helping me solve my issue btw, I just need a better understanding how this works.

Thank you,
Brian

Something similar, can someone help?

I want to compare and match two values in two separate columns and return a value from that same row. Example:

D1= If A1 matches B1 then return value C1

I am working in numbers (iWork) I assume this formula will work the same or would like to try but I need the proper syntax for this can anyone help? Thanks in advance!
 
Upvote 0
I want to create a status rollup in the main task based on project status entries in the subtasks. I'm trying to use the formula below, but am getting the error message "You've entered too many arguments for this function".

=IF((istext(MATCH("Need Help",$F3:$F7),"Need Help",(IF(MATCH("Some Issues",$F3:$F7),"Some Issues","Not Found")))))

I also tried the formula below, but get #N/A when the search area only contains "Some Issues".

=IF(MATCH("Need Help",$F3:$F7),"Need Help",IF(MATCH("Some Issues",$F3:$F7),"Some Issues","Not Found"))

Any suggestions??

Thank you!
 
Upvote 0
Something similar, can someone help?

I want to compare and match two values in two separate columns and return a value from that same row. Example:

D1= If A1 matches B1 then return value C1

I am working in numbers (iWork) I assume this formula will work the same or would like to try but I need the proper syntax for this can anyone help? Thanks in advance!

FYI, if you have a new problem it's best etiquette to start a new forum.

isnumber is a "Boolean" function in that it references the data you're obtaining, and responds TRUE if it is a number, and FALSE if it is anything else.

=isnumber(A1)

if A1 = 1, the cell will return TRUE

if A1 = One, the cell will return FALSE
 
Upvote 0

Forum statistics

Threads
1,214,829
Messages
6,121,827
Members
449,051
Latest member
excelquestion515

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