Average with two criteria

swaink

Active Member
Joined
Feb 15, 2002
Messages
432
Hi All

I am struggling with an average formula and just can't seem to solve it so may I ask for some assistance please.

I am trying to find the average of column Q where C & X meet values in my active sheet (Sheet1) Cell A5 and Cell D2

Column C contains reference numbers some prefixed zero and Column X contains the first four characters of the UK postcode, Column Q contains number values


=AVERAGE(IF('RAW Data'!$C$2:$C$5505=A5,IF('RAW Data'!X2:X5505=D2,""),'RAW Data'!$X$2:$X$5505))

Can you advise where my formula is failing me

Regards

Kevin
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
=AVERAGE(IF('RAW Data'!$C$2:$C$5505=A5,IF('RAW Data'!X2:X5505=D2,""),'RAW Data'!$Q$2:$Q$5505))

Confirmed with CTRL + SHIFT + ENTER
 
Upvote 0
Hi jonmo1

Thats work fine and I can now see where I was failing too. Its been a long day

Appreciate your help

Thank you

Kevin
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,976
Members
448,934
Latest member
audette89

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