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

This may be a really stupid question, but here I go. I want an equation that
will only summ cells in a row in a specific range of cells if one cell in
another range matches a set criteria. For example, I only want to sum those
cells in range D3:F16 if the value in a cell located in cloumn A matches a
specific value. So if A1 is the only cell in column A that matches the
criteria, then D1:F1 are summed.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Summing cells

Try something like this...

=IF(A1=<YourCriteria,SUM(D3:F16),"")

Rick


"phinsxiii" wrote in message
...
This may be a really stupid question, but here I go. I want an equation
that
will only summ cells in a row in a specific range of cells if one cell in
another range matches a set criteria. For example, I only want to sum
those
cells in range D3:F16 if the value in a cell located in cloumn A matches a
specific value. So if A1 is the only cell in column A that matches the
criteria, then D1:F1 are summed.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Summing cells

Almost. What I really want it to do is just some the cells in the same row
as the cell that matches the criteria. But I do not want to have to do this
row by row. I just want to set the column that contains the cells for
matching and then the range of cells that contain all of the data. That way
I only need to adjust my matching criteria.

Thanks:)


"Rick Rothstein (MVP - VB)" wrote:

Try something like this...

=IF(A1=<YourCriteria,SUM(D3:F16),"")

Rick


"phinsxiii" wrote in message
...
This may be a really stupid question, but here I go. I want an equation
that
will only summ cells in a row in a specific range of cells if one cell in
another range matches a set criteria. For example, I only want to sum
those
cells in range D3:F16 if the value in a cell located in cloumn A matches a
specific value. So if A1 is the only cell in column A that matches the
criteria, then D1:F1 are summed.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Summing cells

do you mean to say if A1 has an value say 50.

then it should sum number of 50's which are there in D3:F16.

If yes use this formula.

=(COUNTIF(A1,D3:F16)*A1)
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
Summing 2 columns cells into a 3rd colums cells Wayne Cadigan Excel Discussion (Misc queries) 1 May 13th 10 08:34 PM
Summing to cells using VBA Carlee Excel Programming 1 April 3rd 07 05:16 PM
Summing Cells Above Steve C Excel Programming 4 September 27th 06 02:11 AM
summing cells CG Rosén Excel Programming 3 December 1st 04 05:49 PM
Finding cells and summing variable cells Chris M.[_3_] Excel Programming 3 August 21st 03 09:13 PM


All times are GMT +1. The time now is 08:59 PM.

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

About Us

"It's about Microsoft Excel"