Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default sumif - with 2 conditions - rows and columns

Hi

SUMIF(Jan!$BY$3:$DL$3,Projects!$C6,Jan!$BZ$263:$BZ $266)

this formula seems to work but only returns the number from BZ263 not the
sum of the whole range.

As you see it does access 2 sheets and the first criteria is across columns
the 2nd down a list of rows.

Suggests???

Cheers
UKMAN
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 376
Default sumif - with 2 conditions - rows and columns

Hi

Sumif won't work in that way

Try
=SUMPRODUCT((Jan!$BY$3:$DL$3=Projects!$C6)*Jan!$BZ $263:$BZ$266)

But wahat do you expect your result to be?
Supposing your first set of values are 5, 10, 15
Your comparison value of the other sheet is 10
Your column of values is 20,30,40

The above formula would give a result of 90
If however, the first set of numbers were 10, 10, 10 then the result
would be 270

--
Regards
Roger Govier

UKMAN wrote:
Hi

SUMIF(Jan!$BY$3:$DL$3,Projects!$C6,Jan!$BZ$263:$BZ $266)

this formula seems to work but only returns the number from BZ263 not the
sum of the whole range.

As you see it does access 2 sheets and the first criteria is across columns
the 2nd down a list of rows.

Suggests???

Cheers
UKMAN

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default sumif - with 2 conditions - rows and columns

Roger,

You are a star, this worked great.
All I am doing is collating the man-days and revenue for time spent on an
indiviudal project and the layout of the data is unfortunatly strange to
describe. I didn't think of using sumproduct this way so many thanks.

I'm doing further testing of it and at the moment it works great.

Many thanks.

"Roger Govier" wrote:

Hi

Sumif won't work in that way

Try
=SUMPRODUCT((Jan!$BY$3:$DL$3=Projects!$C6)*Jan!$BZ $263:$BZ$266)

But wahat do you expect your result to be?
Supposing your first set of values are 5, 10, 15
Your comparison value of the other sheet is 10
Your column of values is 20,30,40

The above formula would give a result of 90
If however, the first set of numbers were 10, 10, 10 then the result
would be 270

--
Regards
Roger Govier

UKMAN wrote:
Hi

SUMIF(Jan!$BY$3:$DL$3,Projects!$C6,Jan!$BZ$263:$BZ $266)

this formula seems to work but only returns the number from BZ263 not the
sum of the whole range.

As you see it does access 2 sheets and the first criteria is across columns
the 2nd down a list of rows.

Suggests???

Cheers
UKMAN

.

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
SUMIF-with 2 conditions, need to add range in 2 columns nursemlb Excel Worksheet Functions 3 October 21st 08 03:25 AM
Counting rows that meet conditions in multiple columns belleinhell Excel Worksheet Functions 3 July 21st 08 06:50 PM
Sumif w/ 2 conditions in in different rows St@cy Excel Worksheet Functions 1 January 27th 07 01:54 AM
SumIF full columns, multiple conditions Gupta A. Excel Discussion (Misc queries) 3 May 23rd 06 09:06 PM
sumif columns and rows Paul Clough Excel Worksheet Functions 2 November 22nd 04 05:01 PM


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