Hi,
Here's my problem.
I have a list of fruits and vegetables.
I want to have formula that would go through the list and for every fruit (i.e apples, oranges, bananas etc.) it sees, it counts as 1 fruit.
Example:
Apple
Orange
Orange
Lettuce
Banana
Apple
Apple
Broccoli
Fruit = 6
I think it will involve using arrays, but I don't have any true experience using those. So please be detailed in your explanations.
Thanks,
Do you look for VLOOKUP Function.
If so, I attached a file. In that example, you can increase the number of fruits/vegs as you like (only you need to name those cells). Please let me know if you find any difficulty.
A small modification I made. Please see now.
acsishere.
Last edited by acsishere; 04-26-2008 at 02:40 PM.
If fruit & veg is in A1:A10 this formula will give a unique count
=SUMPRODUCT((A1:A10<>"")/COUNTIF(A1:A10,A1:A10&""))
So basically you're applying a single code to all fruits and then counting the amount times the code appears.
Can you explain on your VLOOKUP formula, I've only started using those 2 days ago.
Have you got it.
Once again I am attaching a file with few more explanations. Please look at this.
Please let me know queries, if any.
acsishere.
I totally understand it now. Thanks a bunch!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks