0 votes

In Excel 2016, I have an organized table.

If a row in the table meets my criteria, I want a cell that counts the number of cells throughout the entire row.

I tried using the formula =COUNTIF(Table[@],"my criterion") in column A on each row, but that does not count correctly.

But this does the trick: =COUNTIF(Table[@[ColB]:[ColH]],"my criteria"). However, because my table will grow, I don't want to mention the name of the column [ColB]; instead, I want to refer to the table's first row.

A header

countif

colC

colD

colE

First

formula

A

C

Second

formula

B

C

formula = =COUNTIF(Table[@],"A") does not work

formula = =COUNTIF(Table[@[colC]:[colE]],"A") works

My table will expand both horizontally and vertically.

Dec 25, 2022 in Others 577 views

## 1 answer to this question.

0 votes

Try this:

` =COUNTIF(B:B,"my citeria")`

so if your Column is A, the range would be A:A, for B it is B:B.

answered Dec 25, 2022 by
• 63,720 points

0 votes
1 answer

## Convert table in a jpg image to excel using python

I believe you must execute OCR (optical ...READ MORE

0 votes
1 answer

## Get number of columns of a particular row in given excel using Java

Use: int noOfColumns = sh.getRow(0).getPhysicalNumberOfCells(); Or int noOfColumns = sh.getRow(0).getLastCellNum(); There ...READ MORE

0 votes
1 answer

## Display a table (in the html/Excel spreadsheet meaning) in a iOS app in Swift

Here is the answer to your question: How ...READ MORE

0 votes
1 answer

## Shortcut to Apply a Formula to an Entire Column in Excel

Try double-clicking on the bottom right hand ...READ MORE

0 votes
2 answers

## How to copy a formula horizontally within a table using Excel VBA?

Hi so basically, create an adjacent column ...READ MORE

0 votes
1 answer

## INDEX formula in Excel, Top 10, repeats previous value

Try this formula in cell W4: =IF(V3=V4,INDEX(INDIRECT("I"&MATCH(W3,I:I,0)+1&":I26"),MATCH(V4,INDIRECT("R"&MATCH(W3,I:I,0)+1&":R26"),0)),INDEX(\$I\$2:\$I\$26,MATCH(V4,\$R\$2:\$R\$26,0))) The calculation ...READ MORE

0 votes
1 answer

## How to "Print" Excel Sheet on Custom Page Size like Din A1?

Try turning the pdf file into an ...READ MORE

0 votes
1 answer

## 1-step shortcut to delete entire row in excel 2016

Highlight the whole row by clicking on ...READ MORE

0 votes
1 answer

## Subtotal in result row returns 0 in excel table

Syntax SUBTOTAL(function_num,ref1,[ref2],...) The SUBTOTAL function syntax has the following ...READ MORE

0 votes
1 answer

## In excel how do I reference the current row but a specific column?

Put a \$ symbol in front of ...READ MORE