Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How do I add all values in a given row (not colum)?

i am trying to search colum "A" for all values equal to something, say all
the cells that have '1000' as their data, and then add up all the cells in
the corresponding row, so if A34, A50, and A56 all have 1000 in them, then I
want to return the value of all the cells added up in the rows, say B34,50,56
: K34,50,56
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default How do I add all values in a given row (not colum)?

Enter with Ctrl-Shift-Enter (an array formula)

=SUM(IF(A1:A100=1000,B1:K100))

Change range to suit

"xenxander" wrote:

i am trying to search colum "A" for all values equal to something, say all
the cells that have '1000' as their data, and then add up all the cells in
the corresponding row, so if A34, A50, and A56 all have 1000 in them, then I
want to return the value of all the cells added up in the rows, say B34,50,56
: K34,50,56

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How do I add all values in a given row (not colum)?


Or how about

=SUMPRODUCT(--($A$1:$A$56=1000)*($A$1:$A$56)+(--($A$1:$A$56=1000)*($B$1:$B$56)+(--($A$1:$A$56=1000)*($K$1:$K$56))))


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=561845

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default How do I add all values in a given row (not colum)?

What's wrong with simply using:

=SUMPRODUCT((A1:A100=1000)*B1:K100)

--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"VBA Noob" wrote in
message ...

Or how about


=SUMPRODUCT(--($A$1:$A$56=1000)*($A$1:$A$56)+(--($A$1:$A$56=1000)*($B$1:$B$5
6)+(--($A$1:$A$56=1000)*($K$1:$K$56))))


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile:

http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=561845


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How do I add all values in a given row (not colum)?


Sorry I read it wrong

I thought he just wanted Col B and K not all of them

VBA Noob


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=561845

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
hiding zero values in charts fascal Charts and Charting in Excel 4 December 19th 05 02:17 PM
Keeping a cell value constant trhoughout a list of values borikua05 Excel Worksheet Functions 2 December 3rd 05 03:03 PM
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 6 November 29th 05 03:27 PM
I Need a formula to evaluate a cell with + or - values Bob in Oklahoma Excel Worksheet Functions 6 October 31st 05 02:41 PM
comparing colum data and exporting phil Excel Discussion (Misc queries) 3 October 28th 05 07:46 PM


All times are GMT +1. The time now is 04:06 PM.

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"