Simple Function request, in Excel not VBA

hitbid

Board Regular
Joined
Jan 21, 2016
Messages
114
Just trying to come up with a formula that helps me do what I want to do in terms of indexing, matching, etc.

I have a row-finding formula that works:
=SMALL(IF($A$2:$A$102=$J2,ROW($A$2:$A$102)),ROW(1:1))

This finds me the Row Number I want.

I have another formula here:
=INDEX(E10:J10,MATCH(M4:R4,E10:J10,0),0)

Notice everywhere that says "10". How do I replace the "10" with the SMALL formula above, so that the formula can be the variable I want. I don't want the "10", I want the Small formula to find the row I want.

I know how to do it in VBA, but the & and the "" method isn't working. Must have forgotten this or I am just missing something.

Thanks.
 
Hi Hitbid!

I'm sorry, but I didn't understand. Could you post a example?

Markmzz

Sure. Attached is a screen shot. When I put another code here, and there happen to be zeros, it doesn't recognize zeros as matching.
et5g88.jpg


I'd love to hear the explanation of the two lines that pointed out. Can't remember seeing either of these in a formula.
LOOKUP(1/6,1/MMULT
{1;1;1;1;1;1}

1 over MMULT? Weird!
 
Upvote 0

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Sure. Attached is a screen shot. When I put another code here, and there happen to be zeros, it doesn't recognize zeros as matching.

et5g88.jpg

Hitbid,

Maybe I'm wrong, but you don't have a match in this case ( 1207968 -> 1207968 - 1198144 <> 1205456, 1201444 <> 1198586, 1194533 <> 1191625 and 1189322 <> 1178612).

I still didn't understand, where is the problem?

Look at this too:

ABCDEFGHIJKL
1IDBCDEFGHIEnter in IDDo ID's have a match?
2532M1897520595134258428761Yes
3694F2488354552385486579267No
4826F2847446419353869203252No
5610F2652495243475232387530No
6761F2897520595134258428609No
7592M1502321217130788868898No
8849F245623700727765155Yes
9383F2477450320690101210839No
10137F20000000Yes
11604F2780418183270799652386No
12155F245623700727765307No
13617F2219435539373311526137No
140F2000000273No
15157F3606230636285280569744No
************************************************************************

<tbody>
</tbody>


By the way, I can't explain the formula or part, until it is ok.

Markmzz
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,110
Messages
6,123,138
Members
449,098
Latest member
Doanvanhieu

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