INDEX & MATCH problem (not again!)

redart

Board Regular
Joined
Oct 15, 2002
Messages
246
Office Version
  1. 2007
Platform
  1. Windows
Hi All,
Can anyone help me with the following INDEX & MATCH problem?
I want the formula in B12 to count only those values (<=1) in the column whose header matches the value in A1. So for the current example the answer would be 3. If A1 contained "cc" the answer would be 2. "m" would give 3, and "a" would give 5. Instead it counts all the values from the desired column to the end column. Any suggestions?.
Book1.xls
ABCDEF
1ccccma
2
3m1374-10
4m18124-7
5c1-2-6-14
6c9322
7m-2117-5
8a1042-6
9m80-414
10m81010
11
1211
Sheet1
 
OK...time to put this one to bed I think. Not sure what the "subrange calculation" was you were referring to Aladin, but I've got it to work anyway. Referring to the sheet below, the formula in cell B12 counts the values in the range D3:F10 - not what I want. Formula in B13 uses the OFFSET function to limit the count to the range D3:D10. Either columns C, D, E, or F gets counted, depending on the value in A1,
Thanks for all the help, and sorry I couldn't explain it better.
Book1.xls
ABCDEFG
1ccccma
2
3m1374-10LS
4m18124-7LS
5c1-2-6-14LS
6c9322LS
7m-2117-5LS
8a1042-6LS
9m80-414LS
10m81010LS
11
1211
133
Sheet1
 
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

Forum statistics

Threads
1,213,536
Messages
6,114,202
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top