How to form an array within a formula?

hrithik

Active Member
Joined
Jul 26, 2010
Messages
336
I need to form this array RANGE = {0,1,($A$2*$B2)+1,($A$3*$B2)+1} and feed it to in the formula MATCH($c2,RANGE,1)

How could I do this? I need a single formula
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi,

Maybe this array formula

=MATCH(C2,IF(ROW(1:4)=1,0,IF(ROW(1:4)=2,1,IF(ROW(1:4)=3,A2*B2+1,A3*B2+1))),1)
Ctrl+Shift+Enter

HTH

M.
 
Upvote 0
Or =MATCH($C2, CHOOSE({1,2,3,4}, 0, 1, $A$2*$B2 + 1, $A$3*$B2 + 1), 1) entered normally
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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