Return fixed value if one of several variables matches the values in a row

csinirli

New Member
Joined
Nov 21, 2013
Messages
6
Hi,

I am trying to create a formula that will allow me to look up three numbers in a row and if those numbers match the value in the row, then return a fixed value.


Values that need to be looked up: 1, 3, 5

Row 1: containing numbers from 1 to 10

Value in Row 2 (in same column), if any values that need to be looked up matches the value in row 1: 50

So if done correctly, in row 2, in columns 1, 3 and 5, I should have the value 50.

Please let me know if I need to clarify further - I realize that was probably a terrible description.

Any help would be much appreciated!

Thanks,

Cem
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Looks like...

A1:J1 houses numbers from 1 to 10

In A2 enter and copy across:

=IF(ISNUMBER(MATCH(A1,{1,3,5},0)),50,"")

Does this help?
 
Upvote 0

Forum statistics

Threads
1,223,264
Messages
6,171,081
Members
452,377
Latest member
bradfordsam

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