#1   Report Post  
Posted to microsoft.public.excel.misc
wilson@irco
 
Posts: n/a
Default Conditional sumif

In my budget comparison worksheet, I need to compare CYTD to PTYD totals and
would like to write conditional sumif that totals PYTD based on the month
(i.e, total A1:A1 if mo. = 1, total A1:B1 of mo. =2, A1:C1 if mo.=3 and so
on). Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Umlas
 
Posts: n/a
Default Conditional sumif

=SUM(A1:OFFSET(A1,0,0,1,mo.))
assuming "mo." is the defined name, otherwise you can use the MONTH function
of the cell containing the date (if the date is in Z1, for example,
=SUM(A1:OFFSET(A1,0,0,1,MONTH(1)))


"wilson@irco" wrote in message
...
In my budget comparison worksheet, I need to compare CYTD to PTYD totals

and
would like to write conditional sumif that totals PYTD based on the month
(i.e, total A1:A1 if mo. = 1, total A1:B1 of mo. =2, A1:C1 if mo.=3 and

so
on). Thank you.



  #3   Report Post  
Posted to microsoft.public.excel.misc
bpeltzer
 
Posts: n/a
Default Conditional sumif

Check out offset, like =sum(offset(a1,0,0,1,#_Months))
If the # of months is in a cell, you can put the cell reference in the final
argument.

"wilson@irco" wrote:

In my budget comparison worksheet, I need to compare CYTD to PTYD totals and
would like to write conditional sumif that totals PYTD based on the month
(i.e, total A1:A1 if mo. = 1, total A1:B1 of mo. =2, A1:C1 if mo.=3 and so
on). Thank you.

  #4   Report Post  
Posted to microsoft.public.excel.misc
wilson@irco
 
Posts: n/a
Default Conditional sumif

Thank you Bob...it works nicely!

"Bob Umlas" wrote:

=SUM(A1:OFFSET(A1,0,0,1,mo.))
assuming "mo." is the defined name, otherwise you can use the MONTH function
of the cell containing the date (if the date is in Z1, for example,
=SUM(A1:OFFSET(A1,0,0,1,MONTH(1)))


"wilson@irco" wrote in message
...
In my budget comparison worksheet, I need to compare CYTD to PTYD totals

and
would like to write conditional sumif that totals PYTD based on the month
(i.e, total A1:A1 if mo. = 1, total A1:B1 of mo. =2, A1:C1 if mo.=3 and

so
on). Thank you.




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 SUMIF??? DaveO Excel Worksheet Functions 5 November 11th 05 01:56 PM
copy the conditional sum (SUMIF) formula Megs Excel Worksheet Functions 2 August 8th 05 05:13 PM
adding summed cells in a conditional sumif Tat Excel Worksheet Functions 5 June 12th 05 06:09 PM
HOW DO I COPY A CONDITIONAL SUM (sumif) AND EDIT IT? (THE SUM NEV. ailsa.fraser Excel Worksheet Functions 5 April 22nd 05 03:10 PM
Conditional Format With SUMIF Minitman Excel Worksheet Functions 3 November 1st 04 02:58 PM


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