#1   Report Post  
Viewpoint
 
Posts: n/a
Default Formula needed

Scenario:

Six Columns, the first column is CITY and the other five are Fiscal Year
Columns (i.e., FY05, FY04, FY03, etc.) but not all cells under the fiscal
year columns are populated.

I want to count the populated cells under the fiscal year (FY) column if it
appears next to the cell with a specific city. (Under the city column, a
city_name can appear multiple times.)

Basically, if the city is X and the FY cell is populated, then count the
cell.

Any suggestion on how to create this formula/function?


  #2   Report Post  
Max
 
Posts: n/a
Default

One way ..

Assume source table below is in Sheet1

-------- FY05 FY04 FY03 FY02
City1 6000 6000 6000 6000
City2 6000 6000 6000 6000
City1 6000 6000 6000 6000
City2 6000 6000 6000 6000
etc

In Sheet2:
-----
You have the table below, with City listed in A2 down

-------- FY05 FY04 FY03 FY02
City1
City2
etc

Put in B2:

=SUMPRODUCT((Sheet1!$A$2:$A$10=$A2)*(Sheet1!B$2:B$ 10<""))

Copy B2 across and down to populate the table

Adapt the ranges to suit

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
Viewpoint wrote in message
...
Scenario:

Six Columns, the first column is CITY and the other five are Fiscal Year
Columns (i.e., FY05, FY04, FY03, etc.) but not all cells under the fiscal
year columns are populated.

I want to count the populated cells under the fiscal year (FY) column if

it
appears next to the cell with a specific city. (Under the city column, a
city_name can appear multiple times.)

Basically, if the city is X and the FY cell is populated, then count the
cell.

Any suggestion on how to create this formula/function?




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
Help! Formula needed. Samrasr Excel Discussion (Misc queries) 1 January 26th 05 12:01 PM
Formula needed plfry Excel Worksheet Functions 7 January 5th 05 10:43 PM
Help, Excel Formula Needed -- Urgent Urgent Excel Worksheet Functions 2 December 14th 04 10:32 PM
Look Up and Cell Reference - Formula Help Needed Janine Excel Worksheet Functions 1 December 14th 04 04:01 PM
Complex formula help needed Jan Excel Worksheet Functions 0 November 9th 04 03:19 PM


All times are GMT +1. The time now is 10:40 AM.

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"