Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 6
Default How to refer to a criterie in a cell using excel sum.if function

Hi i cant figure out how to makte this happen.

i have added the following

=SUM.IF(A17:A21;"<5";B17:B21)

which Work perfectly fine, the problem is that i would like to have a cell reference (B14)instead of 5 but i dont know how to make it Work.

my best guess is

=SUM.HVIS(A17:A21;"B14";B17:B21)

what am i doing wrong?

Last edited by RuneVSP : November 13th 13 at 10:18 AM
  #2   Report Post  
Member
 
Posts: 93
Default

Quote:
Originally Posted by RuneVSP View Post
Hi i cant figure out how to makte this happen.

i have added the following

=SUM.IF(A17:A21;"<5";B17:B21)

which Work perfectly fine, the problem is that i would like to have a cell reference (B14)instead of 5 but i dont know how to make it Work.

my best guess is

=SUM.HVIS(A17:A21;"B14";B17:B21)

what am i doing wrong?
Maybe!

=SUMIF(A17:A21;"<"&B14;B17:B21)
  #3   Report Post  
Junior Member
 
Posts: 6
Default

Quote:
Originally Posted by Kevin@Radstock View Post
Maybe!

=SUMIF(A17:A21;"<"&B14;B17:B21)
Yey, it worked.Thanks.

Now that im talking to such a smart person do you know if I could somehow add a range instead. ( this is actually just a small part of trying to take the average of a given (and changeable) interval iin some coloumns
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
selecting data for a chart based on specific criterie Galen[_2_] Excel Programming 2 August 19th 09 06:02 PM
How do I refer to the results of a function in a cell not the form James Lucero[_2_] Excel Worksheet Functions 2 April 28th 08 10:10 PM
How to refer to the value of a cell containing a VBA function? Bob at Great Waters Excel Programming 1 March 22nd 06 12:16 AM
Refer to selected cell in custom function Snowsride Excel Programming 5 February 9th 05 08:35 PM
Refer to the cell in which a function is entered. Rob Excel Programming 2 April 27th 04 02:22 PM


All times are GMT +1. The time now is 05:56 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"