Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I need help - I actually am trying to do two separate functions, but I
think the formula should be similar for both. #1: I am trying to sum a column if two cells in each row are equal. For example: Date N. Hours D. Hours Total Row1 1/1/2006 3 1 4 Row2 4/4/2006 2 2 2 Row3 8/19/2006 1 1 Row4 9/19/2009 4 4 4 I want to sum the "total" column for all rows that have "n hours" and "d hours" equal. #2: Using the same data example, I want to sum the "total" column if the value in the "date" column is within the past 90 days. Can anyone help? I would be ever so grateful! TIA - Cynthia |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
With an array formula ... {=SUM(IF((B1:B4)=(C1:C4),D1:D4))} Once you have typed your formula, use Ctrl Shift Enter in order to enter formula HTH Cheers Carim |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Forgot the second formula .. {=SUM(IF((A1:A4)=TODAY()+90,D1:D4))} Cheers Carim |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks so much Carim. Here's how the formulas ended up looking, but I
still get the #NUM! as an error. Any ideas? Does it matter that I'm referencing another worksheet? =SUM(IF(('Flight Log'!O:O)=('Flight Log'!Q:Q),'Flight Log'!R:R)) =SUM(IF(('Flight Log'!A:A)=TODAY()-90,'Flight Log'!R:R)) Carim wrote: Hi, Forgot the second formula .. {=SUM(IF((A1:A4)=TODAY()+90,D1:D4))} Cheers Carim |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
You can refer to another worksheet, but you have to define the range .... only using the column will lead the array formula into calculating with empty cells ...and will result into #NUM ... HTH Cheers Carim |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Cynthia, Just forgot to add that if you are facing changing ranges, best solution is to define names and make sure to use dynamic ranges ... HTH Cheers Carim |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Cynthia,
For the sake of completeness, you could also use sumproduct() 1. =SUMPRODUCT(((O1:O10)-(Q1:Q10)=0)*1,(R1:R10)) 2. =SUMPRODUCT(((A1:A10)=TODAY()-90)*1,(R1:R10)) Cheers Carim |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You have been so helpful Carim. I feel like I am SOOO close on this,
but I am not certain how to define the range. The spreadsheet will be continually changing (it is basically to log data) and I want the formula to take into account when new information is entered. Carim wrote: Cynthia, For the sake of completeness, you could also use sumproduct() 1. =SUMPRODUCT(((O1:O10)-(Q1:Q10)=0)*1,(R1:R10)) 2. =SUMPRODUCT(((A1:A10)=TODAY()-90)*1,(R1:R10)) Cheers Carim |
#9
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Hi, Well basically defining dynamic range is done with following formula : =OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),1) Best explanation is available from Debra's site : http://www.contextures.com/xlNames01.html#Dynamic HTH Cheers Carim |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Date formulas | Excel Discussion (Misc queries) | |||
Picking out a Period, in relation to certain cells | Excel Worksheet Functions | |||
Need to Improve Code Copying/Pasting Between Workbooks | Excel Discussion (Misc queries) | |||
how do I format cells to change date and time to just date | Excel Discussion (Misc queries) | |||
split combined Time Date cells | Excel Discussion (Misc queries) |