Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Array Formula Help 1

Status
Not open for further replies.

CandyS

Technical User
Jun 5, 2003
137
US
I need to create an array formula to do the following:

The formula will be in cell A2, and the range is named "ST" (to simplify "site type")

I need the formula to read the range and multiply the occurences of the site types by their respective rates, and sum:

For example:
Branch =100
NonMetro =200
Metro =300

I need the formula to basically read:
=SUM(count of "Branch" in Range ST X 100) + (count of "NonMetro" in Range ST X 200) + (count of "Metro" X 300)

I can do conditional counts in an array, but multiple conditions are beyond my capability.

Thanks!

Candy
 
no need for an array
=(countif(ST,"Branch")*100)+(countif(ST,"NonMetro")*200)+(countif(ST,"Metro")*300)

Rgds, Geoff
[blue]Si hoc signum legere potes, operis boni in rebus Latinus alacribus et fructuosis potiri potes![/blue]
Want the [red]best[/red] answers to your questions ? faq222-2244
 
xlbo: It works! Thanks so much for your valuable help!

Regards,

Candy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top