View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rich NG
 
Posts: n/a
Default Single Function to Analyze Two Columns?

I have a spreadsheet that contains (among other things):
+ codes for car names (1 = Volvo, 2 = Jeep, 3 = Toyota, etc.). These codes
happen to be in Column C. For specific customer-specified reasons, I MUST
use the numeric assignments for car names.
+ codes for car colors (1 = Red, 2 = Blue, 3 = Black, etc.) These codes
happen to be in Column D Again, there is a specific requirement for this.

I know how to count the number of Volvos (=COUNTIF(C:C,"1") and the number
of Red Cars (=COUNTIF(D:D,"1"). This is needed to develop a grid-like table
with these totals in each grid.

QUESTION: How do I count the number of Red Jeeps, Blue Volvos, etc. without
resorting to VBA? I'm hoping that I can use an Excel function to accomplish
this.

Thanks,
Rich