Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Hi all, Can anyone tell me if there's a quick formula that can be done with the following, please, to show only the amount of times 'apples' appears in a row at the bottom of the list? For example: apples grapes bananas apples pears apples apples apples The formula should show '3'. This list would be updated with further fruity developments, so the formula should be able to adapt to show only the times 'apples' appears at the bottom of the list in a row. Would be most appreciated if anyone knows the answer. Many thanks, Dan. -- Voodoodan ------------------------------------------------------------------------ Voodoodan's Profile: http://www.excelforum.com/member.php...nfo&userid=597 View this thread: http://www.excelforum.com/showthread...hreadid=525630 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi
Have a look at COUNTIF() =COUNTIF(A2:A28,"apples") Andy. "Voodoodan" wrote in message ... Hi all, Can anyone tell me if there's a quick formula that can be done with the following, please, to show only the amount of times 'apples' appears in a row at the bottom of the list? For example: apples grapes bananas apples pears apples apples apples The formula should show '3'. This list would be updated with further fruity developments, so the formula should be able to adapt to show only the times 'apples' appears at the bottom of the list in a row. Would be most appreciated if anyone knows the answer. Many thanks, Dan. -- Voodoodan ------------------------------------------------------------------------ Voodoodan's Profile: http://www.excelforum.com/member.php...nfo&userid=597 View this thread: http://www.excelforum.com/showthread...hreadid=525630 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=COUNTIF(A1:A3,A1)
where A1:A3 is the range, and A1 is what you are counting "Voodoodan" wrote: Hi all, Can anyone tell me if there's a quick formula that can be done with the following, please, to show only the amount of times 'apples' appears in a row at the bottom of the list? For example: apples grapes bananas apples pears apples apples apples The formula should show '3'. This list would be updated with further fruity developments, so the formula should be able to adapt to show only the times 'apples' appears at the bottom of the list in a row. Would be most appreciated if anyone knows the answer. Many thanks, Dan. -- Voodoodan ------------------------------------------------------------------------ Voodoodan's Profile: http://www.excelforum.com/member.php...nfo&userid=597 View this thread: http://www.excelforum.com/showthread...hreadid=525630 |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=SUMPRODUCT((A1:A8="apples")*(A1:A8=A2:A9))
HTH -- AP "Voodoodan" a écrit dans le message de ... Hi all, Can anyone tell me if there's a quick formula that can be done with the following, please, to show only the amount of times 'apples' appears in a row at the bottom of the list? For example: apples grapes bananas apples pears apples apples apples The formula should show '3'. This list would be updated with further fruity developments, so the formula should be able to adapt to show only the times 'apples' appears at the bottom of the list in a row. Would be most appreciated if anyone knows the answer. Many thanks, Dan. -- Voodoodan ------------------------------------------------------------------------ Voodoodan's Profile: http://www.excelforum.com/member.php...nfo&userid=597 View this thread: http://www.excelforum.com/showthread...hreadid=525630 |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
My formula produces a wrong result (3) on following list:
apples grapes grapes apples apples oranges apples apples Sorry! -- AP "Ardus Petus" a écrit dans le message de ... =SUMPRODUCT((A1:A8="apples")*(A1:A8=A2:A9)) HTH -- AP "Voodoodan" a écrit dans le message de ... Hi all, Can anyone tell me if there's a quick formula that can be done with the following, please, to show only the amount of times 'apples' appears in a row at the bottom of the list? For example: apples grapes bananas apples pears apples apples apples The formula should show '3'. This list would be updated with further fruity developments, so the formula should be able to adapt to show only the times 'apples' appears at the bottom of the list in a row. Would be most appreciated if anyone knows the answer. Many thanks, Dan. -- Voodoodan ------------------------------------------------------------------------ Voodoodan's Profile: http://www.excelforum.com/member.php...nfo&userid=597 View this thread: http://www.excelforum.com/showthread...hreadid=525630 |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Hi, The first two examples seem to produce all the results of "apples" in the list. I just need the formula look at the column and calculate how many "apples" there are from the bottom of the list, until there's a change in the list, ie., with the below it will count only 3 apples from the bottom because 'pears' is next in line. apples grapes bananas apples pears apples apples apples If I decide to stick the following onto the end of this list: bananas apples grapes apples apples the formula would then need to be able to recalculate and show "2", because there are only now 2 examples of apples from the bottom of the list. Hope this throws a bit more light on what I'm after! Thanks v much, Dan. -- Voodoodan ------------------------------------------------------------------------ Voodoodan's Profile: http://www.excelforum.com/member.php...nfo&userid=597 View this thread: http://www.excelforum.com/showthread...hreadid=525630 |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try...
=COUNTIF(INDEX(A2:A9,MATCH(2,1/(A2:A9<"Apples"))):A9,"Apples") ....confirmed with CONTROL+SHIFT+ENTER, not just ENTER. Hope this helps! In article , Voodoodan wrote: Hi, The first two examples seem to produce all the results of "apples" in the list. I just need the formula look at the column and calculate how many "apples" there are from the bottom of the list, until there's a change in the list, ie., with the below it will count only 3 apples from the bottom because 'pears' is next in line. apples grapes bananas apples pears apples apples apples If I decide to stick the following onto the end of this list: bananas apples grapes apples apples the formula would then need to be able to recalculate and show "2", because there are only now 2 examples of apples from the bottom of the list. Hope this throws a bit more light on what I'm after! Thanks v much, Dan. |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Hi, That's good thanks, but it works only if you manually alter the formula to show where the last cell is, ie., A9. I was hoping that the formula would recalculate automatically, so that it somehow knows where the last entry is in the column, and works it out from there. Sorry for being a picky so and so!! Thanks, Dan. -- Voodoodan ------------------------------------------------------------------------ Voodoodan's Profile: http://www.excelforum.com/member.php...nfo&userid=597 View this thread: http://www.excelforum.com/showthread...hreadid=525630 |
#9
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Hi, That's good thanks, but it works only if you manually alter the formula to show where the last cell is, ie., A9. I was hoping that the formula would recalculate automatically, so that it somehow knows where the last entry is in the column, and works it out from there. Sorry for being a picky so and so!! Thanks, Dan. -- Voodoodan ------------------------------------------------------------------------ Voodoodan's Profile: http://www.excelforum.com/member.php...nfo&userid=597 View this thread: http://www.excelforum.com/showthread...hreadid=525630 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
conditional counting with Excel | Excel Worksheet Functions | |||
counting rows with same values for multiple values | New Users to Excel | |||
Counting rows, then counting values. | Excel Discussion (Misc queries) | |||
Counting names in a column but counting duplicate names once | Excel Discussion (Misc queries) | |||
Counting... | Excel Worksheet Functions |