Result from sub-cat from category using recursion

kevincarbonaro

New Member
Joined
Aug 18, 2014
Messages
2
Hi,

I am trying to create a recursive formula to get results (in red) as below.

On the left is a list of categories/sub-cats/results. From this list I want to match category 'a' [cell F2] and each sub-cat 'a1'..'a3' [cells F3..H3] and get the result [cells F4..H4].

I am trying to use a recursive formula. Can someone kindly help me out?

ABCDEFGH
1
categorysub-catresult
2bb3r7categorya
3cc3r2sub-cata1a2a3
4aa1r8 r8 r4 [empty]
5bb1r1
6aa2r4categoryb
7bb2r5sub-catb1b2b3
8cc1r3 r1 r5r7
9cc2r6

<colgroup><col span="3" style="text-align: center;"><col style="text-align: center;"><col span="4" style="text-align: center;"></colgroup><tbody>
</tbody>

Many Thanks!
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Something like:

=IFERROR(LOOKUP(2,1/($A$1:$A$1000=$F$2)/($B$1:$B$1000=F$3),$C$1:$C$1000),"")
 
Upvote 0
Hi,

Thanks for that, I really appreciate it!

It seems to be working fine. I am finding it very interesting as once I did something similar but had gone through a more complex formula (where I had lost my hardisk and excel file) but I was using Match/Offset/Indirect (incl. making the formula recursive). [Banged my head a couple of times to the wall] :)

This is much simpler to understand!

regards,
Kevin
 
Upvote 0
Glad to help - welcome to the forum too! :)
 
Upvote 0

Forum statistics

Threads
1,215,474
Messages
6,125,024
Members
449,204
Latest member
LKN2GO

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