Computing.Net > Forums > Office Software > Excel Arrays and Columns

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Excel Arrays and Columns

Reply to Message Icon

Name: Duranbeaz
Date: May 3, 2009 at 14:48:59 Pacific
OS: Windows 7
Subcategory: Microsoft Office
Comment:

Hey there, here is my problem:

I've defined a name to represent a large number of rows and columns. I'm trying to make a formula that will count the number of instances of a given name in a particular column.

I could just specify the column in the reference but that would require a different name for each column and there are lots. Data is constantly being added so I wanted to be able to have a limited number of names that I could easily change and thus change every formula in one shot.

For example:
A X Y
B Y X
C Z Z

I want to count the number of 'Y's in columns 2 and 3 using the name "Current" which represents the first two rows or A1:B2.

It seems like I've tried everything. Is this possible?

Thanks!



Sponsored Link
Ads by Google

Response Number 1
Name: DerbyDad03
Date: May 3, 2009 at 15:47:12 Pacific
Reply:

I'm a little confused as to how a range of A1:B2 can have a 3rd column.

So, ignoring that, and assuming you really want to reference columns 2 and 3 of a named range, I think this is what you want:

=COUNTIF(INDEX(Current,,2):INDEX(Current,,3),"=Y")


0

Response Number 2
Name: Duranbeaz
Date: May 13, 2009 at 00:34:51 Pacific
Reply:

Sorry for the confusion. I should have said A1:C2.

In any case, the formula worked beautifully and gave me the hint I needed to properly research the topic instead of blindly searching through formulas.

Thanks!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Excel Arrays and Columns

excel rows and columns in outlook www.computing.net/answers/office/excel-rows-and-columns-in-outlook/4534.html

Excel: Switching row&column headers www.computing.net/answers/office/excel-switching-rowampcolumn-headers/3743.html

Microsoft Excel: IF and CHOOSE www.computing.net/answers/office/microsoft-excel-if-and-choose/3700.html