Modify Sumproduct To Include Helper Column
Dec 17, 2007
I'm using Excel 2007 and have an Employee Scheduling Program that keeps track of 10 employees on a monthly basis (1 worksheet per month). The days of each month are in columns (I thru AM) and my 10 employees are in Rows 6 thru 15, which creates a grid of cells. I use Conditional Formatting to highlight the Weekends, Todays Date, and Holidays. My Sumproduct formula (shown below) is in each of the cells of my grid and places a number (1 to 10 for each employee) from start date to the end date. My Current formula works great as it finds every occurrence of the argument but I need to modify it to include the contents of the Helper Column.
If(Sumproduct(($g$44:$g$74=$c$6)*($m$44:$m$74<=i$4)*($t$44:$t$74>=i$4)),1,0).......
View 11 Replies
ADVERTISEMENT
Apr 11, 2014
I have a criteria issue with a sumproduct formula i'm using. The criteria is essentially supposed to say "if the value in column I (in Sheet2) equals ANY value in column O (in Sheet1), then do not include that line in the SUM. Here is the complete formula:
[Code] ............
View 1 Replies
View Related
Apr 11, 2014
I'm looking at the formula in Sheet3, cell F5. You'll see that the criteria "--(Sheet2!I:I<>Sheet1!O:O)" does not seem to be working. I need the formula to not include any values from Sheet2!E:E, where the corresponding value in column I does not equal any value in Sheet1!O:O. Also, these values can change by user so its not as simple as just typing them in to the formula as an array...
That VBA part of this is that it's in a macro, so if there is any way to make this easier using code instead of a simple formula.
View 1 Replies
View Related
Jan 25, 2013
I'm looking to populate my Helper Column with all duplicates from my Data Column. Please note that my helper column needs all instances of a duplicate.
Data Column
Company ABC
Business DEF
Corporation GHI
Business DEF
Company ABC
Business DEF
Helper Column
Business DEF
Company ABC
Business DEF
The formula needs to be dynamic and it will need to be able to be copied down.
View 9 Replies
View Related
Aug 18, 2014
I get a lot of spreadsheets that I need to do an ascending sort on certain columns, but the problem is there is nothing to revert it back to its original sort. Is there a way to add a reference column numbered 1, 2, 3 etc. so i can return to the original order. The spreadsheets can be over 200 lines at times so doing it manually is really irritating.
It doesnt have to be too smart, just something to add a column and add the numbers say 1 - 1000 in ascending order, I can delete the excess as required. I know I could record a macro but that just seems to time consuming to go up to 1000.
View 2 Replies
View Related
Jan 31, 2007
In the following formula I'm looking for MONTH 1 (January) and WEEKDAY 1 (Sunday):
=SUMPRODUCT(--(MONTH(Sheet1!$A$2:$A$6936)=1),--(WEEKDAY(Sheet1!$A$2:$A$6936)=1),--(Sheet1!$D$2:$D$6936=$D2),Sheet1!E$2:E$6936)
is it possible to find MONTH 1 and 2 (Janauary and February) and use the rest of the formula as is? Can the same thing be done looking for MONTHs 3,4,5 or months 8,9,10,and 11?
View 9 Replies
View Related
Nov 26, 2012
I have a table with 200.000 rows.
I need to create a helper column, that marks distinct values with 1 and not distinct "" or 0.
I tried the following but both use countif and I believe it is the problem it's just to slow.
=IF(COUNTIF($A$2:A2;A2);1;0)
=1/COUNTIF($A$2:A2;A2)
but both are really slow +20 mins to calculate and many times Excel crashes( 2007 32bit).
The workbook is really simple
Col1 (number formatted as text) - Col2 =distinct
View 6 Replies
View Related
Aug 28, 2012
With the formula I have as:
=SUMPRODUCT(--(GLCodes=$B7),MasterNetAmt_01)
I want to dis-include the CC="06" in the summation. I tried using:
=SUMPRODUCT(--(GLCodes=$B7),(cc="06"),MasterNetAmt_01)
But it gives a wrong calculation
I use "--" because i have character in the cell
View 1 Replies
View Related
Jan 14, 2009
I have no problems figuring out SUMIF or SUMPRODUCT with multiple criteria, but I'm trying to help someone with an issue that the second criteria is actually not all-inclusive.
Column B - Lots of numbers, the SUM range
Column C - Yes and No flags. Y or N
C1 = maximum number of matching items to include.
So, =SUMPRODUCT((C2:C100="Y")*(B2:B100)) sums up ALL the Yes rows, but the guy wants to restrict it to the last X matches, and put that X factor in C1. So if C1=5, only the last 5 Y matches are included.
View 9 Replies
View Related
Dec 27, 2013
I only want to include the Month of January in a sumproduct function on another page using a name manager array.
I was thinking of using
=SUMPRODUCT(INDEX(DATA,0,17),--((MONTH(INDEX(DATA,0,5)=1)*INDEX(DATA,0,17))
Where the dates are in the 6th column and include blank cells at the bottom and in the first row it says Date.
View 14 Replies
View Related
Mar 31, 2014
Is there a way to filter column A but ensure it includes multiple lines of data in a different column.
I have attached an example of what I am looking for:
I need to filter by community but keep all the information listed in columns, B, C, & D.
So when I filter to Thunder Bay I would still see the 5 members listed in column D.
I realize the easy solution is to fill all the empty cells in column A to pick up the data in the other columns, but I do not want to Fill all the empty cells to include the name "Thunder Bay" (not the look I want for this spreadsheet).
View 2 Replies
View Related
Apr 2, 2014
I need the values that are copied from the template to copy over in text form from the "Data" Tab. Secondly, the master sheet has multiple lines for each vendor. For the area highlighted in red I'd like for it to copy all cells in column C for the vendor and search the vendor by name. Then, move to the next sheet.
View 10 Replies
View Related
Jan 10, 2010
I believe that the best way to evaluate this request is to look at the example. I have 2 buttons to demonstrate what I need, along with written instructions.
eMailSampleTest.xls
View 4 Replies
View Related
Jun 20, 2013
I want to sum number values in a column. I have used "=SUM(C4:C100)" and it works a treat. Now the twist. I have an adjacent column (Column D) and only want to add values in Column C, where a corresponding value is in Column D on the same row.
So for example if I have C5 as $1000 and D5 as 13/5/13, I want to include the $1000 value in the sum of Column C. However, if I have C5 as $1000 and D5 as blank, I don't want to include it in the sum.
View 3 Replies
View Related
Apr 18, 2009
I am working on an exported database and need to make the first 2 words only PROPER. Do you have to use the helper cell ? Also, I practiced with the LEFT, RIGHT commands using the FIND on the spaces. It worked well. And I can extract the first word and make it proper in a helper cell. But I couldn't seem to add the PROPER function to the extract formula string. Would you add it first ?
Below are 2 of the "strings" that I am working on to make the first 2 words proper and then to subsitute the P/N to #.
GENERIC P/N TIES-8 - 8" nylon tie wraps - 100 ...NEWARK ELECTRONICS P/N 81F4613 / PANDUIT P/N FC…
View 9 Replies
View Related
Oct 24, 2005
I have been given a .csv file of several thousand rows, and I need to
change column A of each. The brief cutout below shows column A of the
first two rows. (I need to skip the first row, which is the headers.)
Kinda clumsy to have such a wide column, but the application this file
is to be fed after I change the contents requires all the data
separated by double-quotes to be in the one column....
View 11 Replies
View Related
Jan 1, 2009
I m trying to use arrays in the wrong way. I simply want to create an array from values in a column and perform calculations on each element and store the results for each element. I therefor need a 2d array. I also dont know the number of values in the column and therefor dont know the number of elements that will be in the array. How would I declare this array. Ive tried Dim MyArr(1 To ActiveSheet.UsedRange.Rows.Count, 1 To 2), but that returns an error - 'Constant expression required'.
View 6 Replies
View Related
Jun 12, 2009
I am creating a helper table so then I can graph my information. But the formula I am using gives me the information. The problem is it skips the first row for every school. So when I select the school's name from the drop down menu in the schools dashboard sheet. The table should update with the grade level.
For example; I select school 1 which has grade 3, 4, & 5. but when I look at the helper table what comes up is grade 4 and 5. the formula I am using is
{=INDEX('2009DATA'!$C$1:$1000,SMALL(IF('2009DATA'!$A$1:$A$1000=$E$3,ROW($A$1:$A$1000),""),ROW()-1))}
View 5 Replies
View Related
Aug 21, 2014
i need a code line to modify in the code that when find duplicated string (found in 2 sheets) Copy to a next empty Column of a 3rd sheet
how code work: The code is working Fine (excellent!), Its compare 2 given range from 2 sheets( "sheet-1" and "Page-1") and if duplicated string is found on such Ranges, with condition of a min/Max of 5 to 12, then these string are copied on a new sheet called "Intercepted". The problem (is my mistake ) is that the small report is copied, BUT is not copy continuously to next empty column.
I tried to modify my self but not success because i don't know which line delete and where to add the the new code Line.
View 3 Replies
View Related
Apr 1, 2014
How to make the below selected range, which represents column Q, also include column A?
Range(ActiveCell, ActiveCell.End(xlDown)).Select
View 4 Replies
View Related
Mar 26, 2014
I've created a custom Function. I would like for there to be a Helper when a user is entering the Function arguments.
For example if I go into a cell and type in =VLOOKUP(
A popup with appear that shows...VLOOKUP(Lookup_Value,Table_Array,col_index_num,[range_lookup]).
Is it possible for me to build something like this in my Function?
View 4 Replies
View Related
Jul 5, 2012
I have a file with a bunch of columns in it. Columns C and D have names in them. I want to filter on these two columns where the results show all rows where the selected name is in both.
Example, If I filter on Column C first on 2 specific names (Joe and Chris), it will not show the results in column D if that name was aligned with a different name in column C (Mark and Steve). I need all rows to come back.
Column C
Column D
Joe
Joe
Chris
Chris
Joe
Chris
Joe
Mark
Joe
Steve
Chris
View 1 Replies
View Related
Jan 30, 2008
in column a I have dates and in column b I have names.
eg
A1 = 1/1/08
A2 = 2/3/08
A3 = 3/1/08
A4 = 3/1/08
B1 = Jenny
B2 = Jenny
B3 = Jenny
B4 = Pat
I am trying to count the number of instances of "Jenny" in January.
I tried =sumproduct(A:A,>=39448
View 9 Replies
View Related
Jul 21, 2009
=SUMPRODUCT(C1:C3,1/(D1:D3))
Trouble is sometimes the value in D1:D3 could be 0 or nothing. how do I get the formula to only sumproduct the rows where the value in Column D is not a 0?
I tried the following
=SUMPRODUCT((D1:D3<>0)*C1:C3,1/(D1:D3))
View 4 Replies
View Related
Oct 26, 2009
I have the following sumproduct formula that's providing solid results but I would like to add a 3rd column of criteria. I'v tired with little succes.
The following formula <=SUMPRODUCT(('IW 38 DUMP for Planning'!$A$1:$A$10000="2A")*('IW 38 DUMP for Planning'!$E1:$E10000={"PAA","RS","RSNR","S","SAM","SAMT","SAO","SAT","SOR","WKS"}))> totals all of the work in plant area "2A", in this case 52 records. I would like it to filter further with values in $H1:$H1000 matching criteria "CONTRACT", "MACH" OR "HTSMET".
The data is easy to find with pivot tables but I would like to take that manual step out of the reporting being doen from these records.
View 3 Replies
View Related
Feb 10, 2010
I use the sumproduct for the attached example. I know I have seen this somewhere on the forum where I can get a value based on a criteria from a row and criteria from a column, but I just can't seem to figure it out right now.
View 2 Replies
View Related
Aug 12, 2008
How do I use a sumproduct for a column with the words "YES", "NO", or "MAYBE" appearing?
I'm using
sumproduct(--$C$1:$C$50000="YES"),--($C$1:$C$50000="NO"),--($C$1:$C$50000="MAYBE"))>1
View 9 Replies
View Related
Jan 16, 2009
I am trying to get sumproduct to work on a table where two conditions in the same column must be true (ie two employees must both have worked on the same project) in order to calculate a result. Trouble is my formula doesn't produce anything but a big fat zero.
Column A contains the list of projects. Column B has the list of employees. And column C has each employee's cost. So:
=sumproduct((column A = project1) * (column B = Joe) * (column B = Mark) * (column C))
=total cost of Project1 when both Joe AND Mark work on it.
Unfortunately, when I structure sumproduct this way, it returns zero.
View 9 Replies
View Related
Apr 24, 2009
I'm trying to work out how to fix the formula below to take into account and ignore and text entries, while giving me the result of the sum of column K minus the sum of column J. If I delete the text entries, the code works but I need the text entries to stay where they are. I've attached a sample sheet with fake info to explain whan I'm trying to do.
Cell N28 on the 'MGMT INFO' tab contains the following formula:
=IF(ISERROR(SUMPRODUCT((Sheet01!$K$1:$K$1000)-(Sheet01!$J$1:$J$1000))),0,(SUMPRODUCT((Sheet01!$K$1:$K$1000)-(Sheet01!$J$1:$J$1000))))
Columns J and K on the 'Sheet01' tab contain the Pay and Invoice information for all the work planners for that client that I'm trying to find the difference between. Each work planner has 'Pay' and 'Invoice' also in that column though, one entry per planner which is causing the SUMPRODUCT formula to screw up.
View 3 Replies
View Related
Sep 24, 2012
I have two sets of criteria I want to incorporate into one formula. In the first column, if the criteria is matched, it will check the criteria in the next column. The criteria in the second column is something that resembles the 'or' function. So if criteria equals x,y, or z, sum the results from the data range c3:c98. I tried writing it like this.
=sumproduct(--(a3:a98=a),--(b3:b98=x(or(b3:b98=y,b3:b98=z))),c3:c98)
View 1 Replies
View Related