Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Formula Question 3

Status
Not open for further replies.

jfussell

Technical User
Jul 17, 2001
66
US
I have a formula question and would appreciate some assistance on this.

I have a spreadsheet that tracks our company stocks. In particularly 1 column that has the number of stocks owned (number), and the other column how the stock was issued (text). I would like to have the cell F150 give me a total SUM of stocks in column F by only summming up all cells in column H that says "Grant". Is there an easy way/formula to accomplish this?

Thanks.
 
Assuming column F contains your numbers of stock owned, this should work:

[COLOR=blue white]=sumproduct((H1:h149="Grant")*(f1:f149))[/color]

[tt]__________________________________________
My name is John, and I approved this post.[/tt]

To get the best answers fast, please read faq181-2886
 
Use Sumif
Code:
=SUMIF(B1:B3,"GRANT",A1:A3)
Where B1:B3 contains your text, Grant is the text you are evaluting and A1:A3 is the range of cells that you want to sum
 
Hi,

Use the SUMPRODUCT Function
[tt]
=SUMPRODUCT((G2:G999="Grant")*(F2:F999))
[/tt]
assuming that you range is from row 2 thru 999

Skip,

[glasses] [red]Be advised:[/red] Researchers have found another Descartes trueism, "Cogito ergo spud."
"I think; therefore, I YAM!
[tongue]
 
Wow, thanks for the quick responses. The formula worked!! Everyone gets a star!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top