COUNTIF statement

Lukums

Board Regular
Joined
Nov 23, 2015
Messages
195
Hello,

Looking to do a COUNTIF statement I believe.

We are looking to find a particular salesperson in this instance Caitlin which is located in column B and then looking for STATE in column E if this is TRUE then total the values found in column H against all the lines found.

The formula will always be kept on Sheet "Total" in Cell "A4"

Example below:

DateSales PersonQuote NumberCust nameStatePost codeShed SizeQuote Value
1CaitlinNSW$1000
1CaitlinQLD$9999
1CaitlinNSW$2000
1CaitlinNSW$3000

<tbody>
</tbody>

Probably an easy one for you guru's appreciate the help

Luke
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Something like this?


Excel 2016
ABCDEFGH
1DateSales PersonQuote NumberCust nameStatePost codeShed SizeQuote Value
21CaitlinNSW$1,000
31CaitlinQLD$9,999
41CaitlinNSW$2,000
51CaitlinNSW$3,000
Data




Excel 2016
AB
1Sales PersonCaitlin
2StateNSW
3
4Total6000
Total
Cell Formulas
RangeFormula
B4=SUMIFS(Data!H2:H10,Data!B2:B10,Data!L1,Data!E2:E10,Data!L2)
 
Upvote 0
Something like this?

Excel 2016
ABCDEFGH
1DateSales PersonQuote NumberCust nameStatePost codeShed SizeQuote Value
21CaitlinNSW$1,000
31CaitlinQLD$9,999
41CaitlinNSW$2,000
51CaitlinNSW$3,000

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Data




Excel 2016
AB
1Sales PersonCaitlin
2StateNSW
3
4Total6000

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Total

Worksheet Formulas
CellFormula
B4=SUMIFS(Data!H2:H10,Data!B2:B10,Data!L1,Data!E2:E10,Data!L2)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Thanks for helping! unfortunately returning a result with 0.
 
Upvote 0
Thanks for helping! unfortunately returning a result with 0.
Are the values in column H actual numbers, or text?
What happens if you put this in a blank cell on the data sheet? =ISNUMBER(H2)
 
Upvote 0

Forum statistics

Threads
1,213,530
Messages
6,114,162
Members
448,554
Latest member
Gleisner2

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