count if function

khalil

Board Regular
Joined
Jun 2, 2011
Messages
100
hello All, please help in this one

for example;
A1 Chair
A2 Chair
A3 Chair
A4 Chair
A5 Table
A6 Chair
A7 Chair
A8 Chair

what i want is to count how many chairs before the column interrupted with table, after table i want to count the chairs after table,

i want the number to be in one cell

i.e before the word table the cell counts 4 chairs, then after table the cell counts 3 chairs,


thanks in advance
:)
 
thanks man,:) it works, i appreciate your help,
if you dont mind can you help me in the one below,

p1=a1 if a1=h1 and k1 is blank, and if k1 is not blank then p1 =k1




thanks again
:)
 
Upvote 0

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,224,568
Messages
6,179,595
Members
452,927
Latest member
whitfieldcraig

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