PC Review


Reply
Thread Tools Rate Thread

count of dishes that contain specific ingredients

 
 
dmalhotr@usa.net
Guest
Posts: n/a
 
      30th Jan 2008
Hi,

I have a table in excel where the first column is dishes and every
subsequent column is ingredients
------------------------------------------------------
dishes | ingredients | ingredients | ingredients
--------------------------------------------------------------------
dish 1 apple corn meat
dish 2 salt apple fish
dish 3 meat grain corn
dish x w y z
--------------------------------------------------------

I would like to translate the result into another excel file in the
following format:

item | # of dishes that is using ingredient | dish 1 | dish 2 | dish
3 | dish x
-----------------------------------------------------------------------------------------------------------
apple 2 x x
corn 2 x
x
salt 1 x
meat 2 x
x
fish 1 x

Is there a way to do this without using VBA code?

Thanks


 
Reply With Quote
 
 
 
 
chelovik
Guest
Posts: n/a
 
      30th Jan 2008
Hi
You could use an array formula to do this quite easily ... it would require
you have a list of the ingredients already built on another sheet or area of
your workbook ...
The formula would be something like this:
{=COUNT(IF($B$4:$D$6=A9,1))}
where B46 is the area with the dishes ... and A9 is the ingredient (eg,
apple.)
I'll send you my workbook to have a look at ... if you don't get it, write
to me at (E-Mail Removed)
- Paul


"(E-Mail Removed)" wrote:

> Hi,
>
> I have a table in excel where the first column is dishes and every
> subsequent column is ingredients
> ------------------------------------------------------
> dishes | ingredients | ingredients | ingredients
> --------------------------------------------------------------------
> dish 1 apple corn meat
> dish 2 salt apple fish
> dish 3 meat grain corn
> dish x w y z
> --------------------------------------------------------
>
> I would like to translate the result into another excel file in the
> following format:
>
> item | # of dishes that is using ingredient | dish 1 | dish 2 | dish
> 3 | dish x
> -----------------------------------------------------------------------------------------------------------
> apple 2 x x
> corn 2 x
> x
> salt 1 x
> meat 2 x
> x
> fish 1 x
>
> Is there a way to do this without using VBA code?
>
> Thanks
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Satellite dishes psd99 General Discussion 23 12th Aug 2008 11:38 AM
Count Specific word in Specific range sizz1@hotmail.com Microsoft Excel Programming 1 16th May 2006 10:55 AM
Count If Specific word in specific range sizz1@hotmail.com Microsoft Excel Misc 2 16th May 2006 10:14 AM
Count specific word in a specific range sizz1@hotmail.com Microsoft Excel Discussion 2 16th May 2006 10:13 AM
I cant format floppy dishes Hoang Thanh Tung Windows XP Performance 2 19th Mar 2004 11:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:14 AM.