Need Help on Sorting + Counting + Categorising via Keywords

maddude

New Member
Joined
Nov 3, 2005
Messages
11
Hi All

I appreciate if you can help me with this. I've searched around the forums but can't seem to find a similiar solution.

I have a set of data in one row, green apples, red apples, china red apples, australia red apples, japan grapes, italy grapes, france grapes

The other row would be the quantity where I'll key in either 1 - 10, etc.

The problem now is that I'm using the COUNTIF function to sort out the grapes, & apples into 2 different categories but would like to sum up the total quantity of that particular category.

For example if japan grapes qty was 3, italy grapes was 2, and france grapes was 1, it would sum up into 1 category and column "grapes" "6"

Anyone have any ideas? Thanks!
 
Okay, I think I understand...

Let U26:V37 contain the following table...

Code:
Au	Australia
Australian	Australia
Australia	Australia
Cn	China
Chinese	China
China	China
Fr	France
French	France
France	France
My	Malaysia
Malay	Malaysia
Malaysia	Malaysia

Then enter the following formula in S26 and copy down:

=INDEX($V$26:$V$37,MATCH(TRUE,ISNUMBER(FIND(" "&$U$26:$U$37&" "," "&R26&" ")),0))

...confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
HI Domenic, once again I appreciate your help. Thanks a lot! If ya drop by Singapore and need a food tour, let me know! :)
 
Upvote 0
I've got it solved somehow.. I changed all the fields in which it needs to check to lowercase and it worked! STRANGE....
 
Upvote 0
maddude said:
I've got it solved somehow.. I changed all the fields in which it needs to check to lowercase and it worked! STRANGE....

The formula is case-sensitive. If you don't want the formula to be case-sensitive, replace FIND with SEARCH.

HI Domenic, once again I appreciate your help. Thanks a lot!...

You're very welcome! Glad I could help!
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

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