Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 407
Default sumif criteria

It looks like the criteria in such a function must be something hard-coded, rather than say $e$4, where $e$4 is a cell in the worksheet.

Is that correct, or is there a way to do it with a cell being part of the criteria?

Thanks!
Dean
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,118
Default sumif criteria

Try something like this:

=SUMIF(A1:A100,""&$E$4,B1:B100)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Dean" wrote:

It looks like the criteria in such a function must be something hard-coded, rather than say $e$4, where $e$4 is a cell in the worksheet.

Is that correct, or is there a way to do it with a cell being part of the criteria?

Thanks!
Dean

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 407
Default sumif criteria

Wow, it sure seems to! Given the normal formatting options as (poorly?)
described in EXCEL help (32, 32, "32", etc), I'm not sure why this works,
but it sure seems to.

I can't imagine why your approach isn't in their help section. Surely,
there must be a need for using a cell reference pretty often.

Thank you very much.

Dean

"Ron Coderre" wrote in message
...
Try something like this:

=SUMIF(A1:A100,""&$E$4,B1:B100)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Dean" wrote:

It looks like the criteria in such a function must be something
hard-coded, rather than say $e$4, where $e$4 is a cell in the worksheet.

Is that correct, or is there a way to do it with a cell being part of the
criteria?

Thanks!
Dean



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sumif Criteria Nic Excel Discussion (Misc queries) 6 August 4th 09 11:15 AM
SUMIF Criteria JC Excel Worksheet Functions 5 May 7th 08 06:58 PM
Sumif not criteria CCrew2000 Excel Worksheet Functions 8 June 6th 07 05:36 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM
sumif with 2 criteria Jamie Excel Worksheet Functions 2 November 11th 04 04:48 PM


All times are GMT +1. The time now is 07:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"