Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default conditional summing from other worksheet

I am creating a budget workbook. The first sheet will display totals broken
down by Type and Date as entered on other sheets. So, I want the following
function displayed:

Drawing from the sheet called "B & R Materials," show the Sum from Column L
for items that have Type "BOOK" in Column C and "Jan-07" in hidden Column M.

I can get it to work if I direct it to one cell on "B & R Materials", but
not to apply that to the whole column. This is the formula that works for one
cell:
=IF(AND('B & R Materials'!C4="Book", 'B & R Materials'!M4="Jan-07"),SUM('B &
R Materials'!L4))

If I change C4 to $C:$C, it doesn't work. Why? What am I doing wrong?
Thanks,
S.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default conditional summing from other worksheet

You don't need sum when it only one cell in L4

=IF(AND('B & R Materials'!C4="Book", 'B & R Materials'!M4="Jan-07"), 'B & R
Materials'!L4)

If you want a whole column in C
=IF(AND(COUNTIF('B & R Materials'!C:C,"Book"), 'B & R
Materials'!M4="Jan-07"), 'B & R Materials'!L4)




"nsword1478" wrote:

I am creating a budget workbook. The first sheet will display totals broken
down by Type and Date as entered on other sheets. So, I want the following
function displayed:

Drawing from the sheet called "B & R Materials," show the Sum from Column L
for items that have Type "BOOK" in Column C and "Jan-07" in hidden Column M.

I can get it to work if I direct it to one cell on "B & R Materials", but
not to apply that to the whole column. This is the formula that works for one
cell:
=IF(AND('B & R Materials'!C4="Book", 'B & R Materials'!M4="Jan-07"),SUM('B &
R Materials'!L4))

If I change C4 to $C:$C, it doesn't work. Why? What am I doing wrong?
Thanks,
S.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default conditional summing from other worksheet

Thank you. This looks like the right direction. I do infact want the sum from
column L for all items with Book in Column C and Jan-07 in Column M. So I
modified your suggestion to this:

=IF(AND(COUNTIF('B & R Materials'!C:C,"Book"),'B & R
Materials'!M:M,"Jan-07"), 'B & R Materials'!L:L)

And when I enter the formula, a save window pops up to Update Values: B & R
Materials. I don't understand what that is asking for. (Sorry, this is only
my second real use of Excel.)

Thanks for your help.


"Teethless mama" wrote:

You don't need sum when it only one cell in L4

=IF(AND('B & R Materials'!C4="Book", 'B & R Materials'!M4="Jan-07"), 'B & R
Materials'!L4)

If you want a whole column in C
=IF(AND(COUNTIF('B & R Materials'!C:C,"Book"), 'B & R
Materials'!M4="Jan-07"), 'B & R Materials'!L4)




"nsword1478" wrote:

I am creating a budget workbook. The first sheet will display totals broken
down by Type and Date as entered on other sheets. So, I want the following
function displayed:

Drawing from the sheet called "B & R Materials," show the Sum from Column L
for items that have Type "BOOK" in Column C and "Jan-07" in hidden Column M.

I can get it to work if I direct it to one cell on "B & R Materials", but
not to apply that to the whole column. This is the formula that works for one
cell:
=IF(AND('B & R Materials'!C4="Book", 'B & R Materials'!M4="Jan-07"),SUM('B &
R Materials'!L4))

If I change C4 to $C:$C, it doesn't work. Why? What am I doing wrong?
Thanks,
S.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default conditional summing from other worksheet

My fault. Typo in my worksheet name.

So I fixed the typo, and the calculation is working without error, but I've
done something wrong because it returns a value of $0.00.

Here is the formula:
=IF(AND(COUNTIF('B & R Materials'!C:C,"Book"),COUNTIF('B & R
Materials'!M:M,"Jan-07")),'B & R Materials'!L:L)

And here are the values in the first entry in B & R Materials:
C4 = Book
M4 = Jan-07
L4 = $49.95

Any ideas why it returns a sum of 0.00?

Thanks again.
-S

"Teethless mama" wrote:

You don't need sum when it only one cell in L4

=IF(AND('B & R Materials'!C4="Book", 'B & R Materials'!M4="Jan-07"), 'B & R
Materials'!L4)

If you want a whole column in C
=IF(AND(COUNTIF('B & R Materials'!C:C,"Book"), 'B & R
Materials'!M4="Jan-07"), 'B & R Materials'!L4)




"nsword1478" wrote:

I am creating a budget workbook. The first sheet will display totals broken
down by Type and Date as entered on other sheets. So, I want the following
function displayed:

Drawing from the sheet called "B & R Materials," show the Sum from Column L
for items that have Type "BOOK" in Column C and "Jan-07" in hidden Column M.

I can get it to work if I direct it to one cell on "B & R Materials", but
not to apply that to the whole column. This is the formula that works for one
cell:
=IF(AND('B & R Materials'!C4="Book", 'B & R Materials'!M4="Jan-07"),SUM('B &
R Materials'!L4))

If I change C4 to $C:$C, it doesn't work. Why? What am I doing wrong?
Thanks,
S.

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
Conditional Summing... AC [MVP MCMS] Excel Worksheet Functions 2 March 11th 06 07:47 PM
Conditional summing Brad Excel Discussion (Misc queries) 1 August 31st 05 10:55 PM
Conditional Summing MartinShort Excel Discussion (Misc queries) 4 July 1st 05 12:11 PM
"Conditional" summing Aladin Akyurek Excel Worksheet Functions 0 January 16th 05 07:46 PM
conditional Summing ben Excel Worksheet Functions 2 January 10th 05 06:51 PM


All times are GMT +1. The time now is 09:46 AM.

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"