Count if formula with nested components... please help

Joe Spamalot

New Member
Joined
Oct 12, 2015
Messages
2
Hello saviour

I'm a bit of a novice in excel and have been racking my brain and the internet on this one. Here's the data set

B
Rain days
C
Apr
D
May
E
Jun
F
Jul
G
Aug
H
Sep
We00
Th00.2
Fr000.8
Sa000.30
Su003.40
Mo03.400.80
Tu100.49.67.604
We400.81600
Th100.60.100
Fr14.600.130.40
Sa3.801.40.11510.4
Su9.200.306.81.2
Mo0.800.401.40
Tu0.20003.40
We0.400000
Th00000.20
Fr000.605.46.3
Sa010.202.3018
Su021.801.204.4
Mo029.6030.711.20
Tu00.1010.45.80.3
We0001.40.10
Th002.810.420.80
Fr004.60.14.20
Sa005.70.114.20.8
Su00.616.30.10.10
Mo0010.400.20
Tu00.20.11.400
We000200
Th0.1004.200
Fr007.42.40
Sa00.11.80
Su0012.20
Mo010
Tu00
We0
Totals44.166.353.8104106.645.4
number of rain days1081523198
Average of rain days4.48.33.64.55.65.7
Wet days0

<tbody>
</tbody>

The formula which is returning a 0 in Wet days is:

=COUNTIF(C16:C51, VLOOKUP( OR("Mo", "Tu", "We", "Th", "Fr"),B16:H51, 2, FALSE) >C54)

What I want is to add up the number of rain days that occurred on a week day that was above the average for the rain days in that month

Help greatly appreciated

Cheers

Joe
 
Last edited:

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Found the solution to this if it helps anyone else. It is

=SUM(COUNTIFS($A$2:$A$37,{"Mo","Tu","We","Th","Fr"},B2:B37,">"&B40))

Cheers

Joe
 
Upvote 0

Forum statistics

Threads
1,215,480
Messages
6,125,048
Members
449,206
Latest member
Healthydogs

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