#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 66
Default Category

Please help.

I have a database with customer name at Column A, and the things they
purchased located from Column B, C, onward. They are 15 Fields, that customer
can buy.
Col B: Food
Col C: Drink
Col D: Food
Col E: N/A (the customer dont buy this item).
....
Col ?: Tool

how to know, that a customer buy only with one Category or more than two
category. But please be informed, if Customer A, buy Col B and Col D, i would
like still to consider that she buy one category of FOOD.

TIA.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 158
Default Category

At the end of each row, you can insert a formula that counts the number of
items purchased, taking into account that food counts only once. This
formula would go in the first row, then you could copy it down to all the
other rows:

=COUNTA(B2:P2)-IF(AND(B2<"",D2<""),1,0)

It works by counting the items and then subtracting 1 if both FOOD
categories have an entry. The formula assumes you leave the cells blank if a
customer does not purchase any item in a category.

I would suggest you consider moving the formula to BEFORE the purchases
columns so you won't have to scroll to the right to see it each time. Just
adjust the range references.

Hope that helps.

"Andri" wrote:

Please help.

I have a database with customer name at Column A, and the things they
purchased located from Column B, C, onward. They are 15 Fields, that customer
can buy.
Col B: Food
Col C: Drink
Col D: Food
Col E: N/A (the customer dont buy this item).
...
Col ?: Tool

how to know, that a customer buy only with one Category or more than two
category. But please be informed, if Customer A, buy Col B and Col D, i would
like still to consider that she buy one category of FOOD.

TIA.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Query on Category & Sub-category Santha Kumar Excel Discussion (Misc queries) 1 April 25th 07 12:30 PM
How do I display category [email protected] Excel Worksheet Functions 1 February 20th 06 05:57 PM
Axis category Svilen Pachedzhiev Charts and Charting in Excel 2 November 7th 05 08:33 AM
how can i add a category to XY-graph? Bruno Verstraete Charts and Charting in Excel 1 February 18th 05 02:16 AM
Rank within Category Henrik Excel Worksheet Functions 0 January 28th 05 07:03 PM


All times are GMT +1. The time now is 01:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"