ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Can I use a cell reference in the criteria for the sumif function. (https://www.excelbanter.com/excel-worksheet-functions/5699-can-i-use-cell-reference-criteria-sumif-function.html)

Number Cruncher

Can I use a cell reference in the criteria for the sumif function.
 
If I use "32" as the criteria in my sumif formula, I receive the correct
answer.

If I use C3 as the critera, I receive zero as the answer.

Is some way to use a cell reference in the criteria? Excel help says that
the criteria can be a "number, expression, or text."

Dave R.

Place the "" in quotes and use & ---- i.e.

=SUMIF(A1:A100,""&F1,B1:B100)


"Number Cruncher" <Number wrote in
message ...
If I use "32" as the criteria in my sumif formula, I receive the correct
answer.

If I use C3 as the critera, I receive zero as the answer.

Is some way to use a cell reference in the criteria? Excel help says that
the criteria can be a "number, expression, or text."




Domenic


=COUNTIF(A1:A10,""&C3)

Hope this helps!


--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=275397



All times are GMT +1. The time now is 06:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com