Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default SUMPRODUCT NON-ADJACENT CELLS

I have a spreadsheet with values in f25,f32,f39....b25, b32,b39. I want to
evaluate the sumproduct of these two arrays. I have tried
sumproduct((f25,f32,f39),(b25,b32,b39)) and it returns the #VALUE! error. I
have tried naming these ranges and various other syntax, but I have had no
luck. Can you calculate a sum product on non-adjacent cells?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 299
Default SUMPRODUCT NON-ADJACENT CELLS

If it has a pattern like you seem to have (every 7th cell)


=SUMPRODUCT(--(MOD(ROW(B25:B39),7)=4),--(B25:B39),--(MOD(ROW(F25:F39),7)=4),--(F25:F39))


will work if the values start in row 25, if it starts in row 1 you can use

MOD(ROW(B1:B100),7)=1


--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)


"rstanton1" wrote in message
...
I have a spreadsheet with values in f25,f32,f39....b25, b32,b39. I want to
evaluate the sumproduct of these two arrays. I have tried
sumproduct((f25,f32,f39),(b25,b32,b39)) and it returns the #VALUE! error.
I
have tried naming these ranges and various other syntax, but I have had no
luck. Can you calculate a sum product on non-adjacent cells?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default SUMPRODUCT NON-ADJACENT CELLS

I gave an example that was too easy apparently! On the particular
spreadsheet I am on that will work fine, but I have a couple other where
there is no rhyme or reason to the row number. Is there a way to handle this
if it was f25,f31,f34...b25,b31,b34?

If not, thanks for the help that you have given me!

"Peo Sjoblom" wrote:

If it has a pattern like you seem to have (every 7th cell)


=SUMPRODUCT(--(MOD(ROW(B25:B39),7)=4),--(B25:B39),--(MOD(ROW(F25:F39),7)=4),--(F25:F39))


will work if the values start in row 25, if it starts in row 1 you can use

MOD(ROW(B1:B100),7)=1


--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)


"rstanton1" wrote in message
...
I have a spreadsheet with values in f25,f32,f39....b25, b32,b39. I want to
evaluate the sumproduct of these two arrays. I have tried
sumproduct((f25,f32,f39),(b25,b32,b39)) and it returns the #VALUE! error.
I
have tried naming these ranges and various other syntax, but I have had no
luck. Can you calculate a sum product on non-adjacent cells?




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
By selecting cells adjacent to cells tally sheet tom Excel Worksheet Functions 2 September 20th 06 07:09 PM
How do I fill (copy) nonadjacent cells to adjacent cells? BuckyGeorge Excel Discussion (Misc queries) 2 December 22nd 05 04:18 AM
How do I use countif across non-adjacent cells? Nick Excel Worksheet Functions 2 June 9th 05 03:28 AM
Paste to adjacent cells Dave Excel Discussion (Misc queries) 3 May 25th 05 02:06 AM
How can I add non-adjacent cells with a formula dhodges00 Excel Worksheet Functions 3 January 12th 05 04:46 PM


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