formula required

deck-b

New Member
Joined
Aug 1, 2013
Messages
19
Hi all


I need a formula that can recognise the common demonators below and then add based on this common demonator. Please see the below - the bolded numbers are where i need the formala. Basically its to recognse where a and b are in the top table and then add the numbers in the second table.

Please help!

Thanks

Declan

jan feb mar months is a months in b
1 a a b 2 1
2 a a b 2 1
3 a a b 2 1


jan feb mar total of a total of b
1 5 5 10 10 10
2 5 5 10 10 10
3 5 5 10 10 10



this view is not showing what it should. i can forward a screen shot if someone is willing to help!


 
Last edited:

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
As far as I understand you, this array formula should be the solution:
Code:
=SUM((A6:C6) * ((A1:C1) = "a"))
where A6:C6 are cells A1:C1 from your second example table (5, 5, 10), and A1:C1 are cells A1:C1 from the first table (a, a, b).
This should help with column D, for column E replace "a" with "b".
Remeber to use it as array formula, i.e. paste the formula to the cell and press Ctrl + Shift + Enter.

Let me know if it works.
Regards
 
Upvote 0

Forum statistics

Threads
1,215,943
Messages
6,127,814
Members
449,409
Latest member
katiecolorado

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