Add Row If 2 Columns Have Certain Values
Jan 4, 2007
I am trying to utilise a spreadsheet i set up to monitor annual leave to work on desk allocation.
The problem is i want the bottom of a column to sum or count based on the entry above it as long as another column had a certain value.
To explain.
Column C says if a person is an advisor and has the value "Y" if there are and if not it will be blank.
Now there are another 30 odd columns after that and i need a total at the bottom of each seperatly to say if a row above has an "a" in it & the C column has a Y
So i want to total all the entries in the E column that have and A entry & a Y entry in the C column.
I will then continue this over the F ,g etc
I am sre it is much easier than i have explained it
View 6 Replies
ADVERTISEMENT
Oct 13, 2008
I'm trying to compare values in 2 separate columns to see how many times the same value appears in both columns. Ideally I would be able to insert a range function to compare the values in the column "ID 1" against the values in column "ID 2" and return the count of times that a value appears in both columns. For example 2122, 1112 and 1718 appear in both columns and I would like the formula to return a count of 3.
ID 1ID 2
12342122
45671112
89101718
11122678
13144544
15162324
17189987
19201215
21221928
1976
2576
2345
4678
In my actual project I'm comparing 2 columns in the same worksheet. The column are column B with data in cells B2:B10266 against column C with data in cells C2:C18560.
View 4 Replies
View Related
Mar 26, 2014
I have set of data in multiple range ,need to fill the and replace the old values depends upon two column values (AH & AL)
IF Active Calls is "TATA" In AH:AH, and IF Action Onwer Col is "Blank",in AL:AL
Then Fill the Blank cells by Values "SVC" in the col Action Owner,Then Replace Old values by "Updates Awaited" in Status Col(AM:AM)
Find the attachment & basic code take this code for this task
[Code] ....
toggle-2.xlsb‎
View 5 Replies
View Related
Mar 14, 2014
I'm running into an issue trying to calculate unique values in a Data column based on a few variables in other columns.
My current formula in Summary tab D4:D19 is
{=SUM(IF(FREQUENCY(IF(Data!$I$3:$I$66<$E$1,IF(Data!$A$3:$A$66=$H$1,
IF(Data!$C$3:$C$66=A4,ROW(Data!$I$3:$I$66)))),ROW(Data!$I$3:$I$66)),1))
+
SUM(IF(FREQUENCY(IF(Data!$I$3:$I$66<$E$1,IF(Data!$A$3:$A$66=$I$1,
IF(Data!$C$3:$C$66=A4,ROW(Data!$I$3:$I$66)))),ROW(Data!$I$3:$I$66)),1))}
This is currently counting the number of times a date value (data column I) appears for that name (A4:A19) in the data when meeting all of the conditions. I need it to instead count the number of times a unique date appears for that name with the additional conditions met (which all appear to work fine).
The results in the pink highlighted cells (Summary column D) should be:
Names starting with A - 3
All others - 2
I've left some other columns in the data with X's so that I can easily convert this back to my working spreadsheet.
View 2 Replies
View Related
May 15, 2014
I would like to align the matching values in columns A and B but I want the values that correspond to b in c,d and e to go with the column b value.
C D and E don't necessarily have a value in there but if it does it needs to move with B
View 5 Replies
View Related
Apr 17, 2009
I have 12 columns of data. In those 12 columns of data I have 3 digit numeric IDs. I want to count the unique number of IDs for each row. I have about 14K rows.
What would be the best way to do so?
Some rules about how the data is stored. I have 12 columns of data with anywhere from 1 to 12 columns having data for each respondent. Data always fills left to right and never skips columns.
I have attached an example file that represents how the data is stored and the output I would like (Unique Count).
View 7 Replies
View Related
Apr 21, 2014
I have different reports, some have fifty transactions, others have thousands. My goal is to: Insert a new row every time the values in the "Account" column meet a certain criteria, AND THEN add the totals for the Debit and Credit Columns.
Let's say I start with a table that looks like this:
A
B
C
D
Dept
E
Account
T
F
F2
G
Debit
Credit
Total
33010
[Code] ....
I want to group the first four rows because Accounts 33010 and 33015 are in the same department. Same with 50050 and 500060. I want to then insert a row below the last row with "33015" as its Account #. And add the values for Debit and Credit. It'd look like this:
A
B
C
D
Dept
E
Account
[Code] .........
Honestly, I have tried everything. Running a Macros with Relative reference does not cut it.
View 8 Replies
View Related
Jan 1, 2014
I have a budget spreadsheet as follows:
Category, Sub-Category, Amount
Food, Lunch, 10
Food, Dinner, 20
Food, Lunch, 15
Food, Dinner, 30
I need to track how much was actually spent on various categories and sub-categories, as follows:
Category, Sub-Category, Budget Amount, Actual Amount
Food, Lunch, 50, 25
Food, Dinner, 90, 50
Essentially, the actual amount contains a set of formula, that sums up the spending sheet (the one on top) based the category and sub-category on the budget sheet (the one on the bottom). Tried to use SUMIF but it seems to work on a single column.
View 4 Replies
View Related
Jan 17, 2014
When Cells "Month Input"(C21) and "Network Input"(E21) are populated with one of the values from columns C(C2:C14) and E(E2:E14) respectively then the Destination Cell should be populated with the corresponding value from Column F(F2:F14) into Destination Cell H20.
View 11 Replies
View Related
Jun 27, 2014
I am trying to count how many times a certain value appears in a column. For example how mnay times A81001 appears in column A and compare with column B. I suppose it's Count function?
column A column B
A81001A81001
A81001A81001
A81002A81002
A81002A81002
A81002A81002
A81002A81002
A81002A81002
A81003A81003
A81003A81003
A81003A81004
A81004A81004
A81004A81004
A81004A81004
A81004A81005
View 12 Replies
View Related
Jun 27, 2014
I need creating a formula that matches the values between two separate columns with results from that matching in the third and fourth columns.
Example: Column A contains the first set of values and column B contains the second set of values. The result in column C would be all the values that are in both columns A and B and the result in column D are all the values that are not found in both columns A and B.
Column AColumn BColumn CColumn D
122123123122
123133322133
231221323221
311322231
322323311
323333333
See attached spreadsheet : match_values.xlsx‎
View 7 Replies
View Related
Jul 13, 2014
I need a formula that matches a number on Sheet1 with a number on Sheet2. Sheet1 contains 7 columns of numbers. Each column corresponds with the same column on Sheet2 if the number on Sheet1 column 1 can be found in Sheet2 column 1 then the result is True. If the number is not found in Sheet2 column 1 then the result is False. This same criteria would apply to columns 2 through 7 as well.
The formula would start by selecting a number in Sheet1 that corresponds with the formula column and then scan the entirety of the matching column on Sheet2 for that number. If it is found in that column the result is TRUE.
Sheet1 H3 corresponds to Sheet1 A3 scans all of Sheet2 column B for the value in A3 if it's in Sheet2 column B the result in H3 is True if it's not then the result in H3 is False.
EXAMPLES:
Sheet1: column heading 1 - (A3) = 2223333333
Sheet2: column heading 1A - (B72) = 2223333333
Result H3 = TRUE
Sheet1: column heading 1 - (B3) = 222333333314
Sheet2: column heading 1A - (C67) = 222333333314
Result I3 = TRUE
Sheet1: column heading 1 - (C3) = 222333333332
Sheet2: column heading 1A - (D61) = 222333333332
Result J3 = TRUE
Sheet1: column heading 1 - (D3) = 222333333321
Sheet2: column heading 1A - (E62) = 222333333321
Result K3 = TRUE
Sheet1: column heading 1 - (E3) = 222333333331
Sheet2: column heading 1A - (F65) = 222333333331
Result L3 = TRUE
Sheet1: column heading 1 - (F3) = 222333333351
Sheet2: column heading 1A - (G70) = 222333333351
Result M3 = TRUE
Sheet1: column heading 1 - (G3) = 222333333352
Sheet2: column heading 1A - (H69) = 222333333352
Result N3 = TRUE
I've attached a workbook with examples : match_numbers.xlsx‎
View 3 Replies
View Related
Aug 11, 2014
I am creating a payroll spreadsheet that will look up tax deductions from a spreadsheet I pulled from the IRS website. The first two columns represent a range of values the employee's pay would fall between. The first column is "paid at least" and the second column is "but paid less than".
Once I locate which row the employee's wages fall between, I would then need to match their number of withholdings with the corresponding column. Columns 3, 4 and 5 have headings to represent 0, 1 or 2 withholdings.
The value I need returned would be the intersection of wages paid and withholdings. For my spreadsheet example, if the employee's wages are 1,023 and they have 1 withholding, I need the formula to return 147. I was able to find a vlookup/match formula but it worked only without a range of wages paid.
For example, if the employee was paid exactly 1,030 and had 1 withholding, it would vlookup/match to return 147. Obviously, this won't work with me needing to find the correct row based on where their wage falls in the ranges.
I've attached a picture of the spreadsheet example below. payroll example.jpg
View 2 Replies
View Related
Feb 18, 2014
I am having a hard time with a copying values, it is best if I make an example. The idea is: if A1 is "Toyota" and there is some other text also in B1, B2 and B3 then A1,A2 and A3 are "Toyota"
Book1.xls
View 4 Replies
View Related
Apr 18, 2014
I have 6 columns containing Agency IDs of different years. I would like to know which agencies appear in all the years. That is which agencies were funded for all the years. How can I do this? perhaps Vlookup?
View 11 Replies
View Related
Feb 19, 2009
If I am creating a vlookup forumulae, and I want to return values from several columns, I have been manually changing the column it's returning the value from when I drag the formula across the columns. This is ok for a few columns.
eg =VLOOKUP($D2,$AB:$AJ,1,FALSE), dragged across columns, and then manually edited in each column to read
=VLOOKUP($D2,$AB:$AJ,1,FALSE), =VLOOKUP($D2,$AB:$AJ,2,FALSE), =VLOOKUP($D2,$AB:$AJ,3,FALSE), =VLOOKUP($D2,$AB:$AJ,4,FALSE)
etc
The value doesn't increase when you drag it.
is there a short cut for doing this automatically?
View 10 Replies
View Related
Jun 15, 2009
i have information across three columns the first has user-names in each row the whole way down, the second has between 1-7 activity codes (when not eacher user will use), the third has the times they have been on these codes.
what im trying to do is match the name, code and get the time to be displayed in a fix table, as the reported information is not always in the same structer
eg
user1 code 1 0:02:00
user1
user1
user2 code 3 0:05:00
user2 code 6 0:20:00
user2
now i've got it in my head that sumproduct iwll be the best way to get it, but i cant seam to get the third array to work properly, and always comes up with either value or NA
View 7 Replies
View Related
Jul 30, 2013
I have 2 columns of data from which i want to summarize all unique values:
A1
A2
A2
B1
B2
B1
B2
C1
C2
So in my report, i need to see a count of of unique A with unique 1 or 2, Unique B with unique 1 or 2, etc.
View 6 Replies
View Related
Jul 30, 2013
What vba code can transpose ALl column A values from sheet 1 to get a row values to sheet 2.
example in sheet 1 column A i have
Apple
Orange
Mango
Guava
Pineapple
and in sheet 2 it will be as
A B c d
Apple Orange Mango Guava and etc.
View 1 Replies
View Related
Apr 13, 2014
[URL] I had involved trying to sum a column of values if the associated date, matched a column heading.
I've continued to work with this, and made a few slight adjustments to match a live environment.
In it's current form, the column headings from the "Output" sheet, where the values are paste, start at column C and end at column N and the range is set with this section of code:
[Code] ........
What I'm trying to is amend this so the range starts at column C but ends at column D.
View 2 Replies
View Related
Feb 26, 2014
I have a worksheet with values that change weekly (sample, attached). The number of rows and columns may change as well. However, columns A, B, and C will always have date, name and location data and therefore must be preserved. Aside from the headers, the values in the columns from D onward will include only the numbers 0, 1, 2, or 3.
I need to copy the columns to Sheet2 and then delete all of the columns from D onward that do not have a 2 or a 3 in them. In other words, I need to always keep columns A, B, and C, and also keep any column (and all of its data) if a 2 and/or 3 shows up anywhere in the column.
I imagine there is even a quicker way to cherry pick the first three columns, as well as any other columns that have a 2 or 3 in them, and then paste them to the second worksheet. However, either approach will meet the need well enough.
View 3 Replies
View Related
Jul 9, 2009
I'd like to perform a merge of value between columns D and E.
So if D9's value = 2 and E9's value = 15
then the result will be
E9=215
I've tried the following but I haven't gotten it to work.
View 7 Replies
View Related
Jul 13, 2013
There are two columns A and B and values there in
A B
1 1
2 2
3 3
4 4
9 5
10 6
11 13
15 15
As you can see there are certain numbers that are missing between column B and A. I want to know which of the numbers that are present in column B are missing in column A ...any handy calculation ?
View 3 Replies
View Related
Jul 19, 2013
There are 2 columns (A, B). So now I want to check if there are same cell values within both columns.
Say for example A1.value= "red", so I want to check if "red" exists in anywhere column B. And if it exists both cells needs to be highlighted. And there are tons of rows in columns A, B
Any macro or conditional formatting?
View 5 Replies
View Related
Mar 2, 2014
I've written a code that supposed to copy all available rows from columns A to D (starting from cell A16).
- How can the code be changed so that in addition to values in columns A:D values of the columns F:H would also be copied?
The code:
Range("A16").Select
ActiveCell.Range("A1:D1").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.copy
Sheets("Sheet1").Select
Range("B2").Activate
[code]....
View 2 Replies
View Related
Jun 16, 2014
If our work for the intersection of two columns A, B supposed to be output 1, 2 and 3 Required to find the remainder of the A and show it automatically in column C The remainder of the B reveled in column D
Note: columns A,B repeat accepting of figures
To explain the result of the remaining column A is 1, 1, 5
LIST1
LIST2
RESULT
1
1
1
1
2
1
[code]....
View 9 Replies
View Related
May 16, 2007
This is part of my sheet that I am copying from: ...
View 28 Replies
View Related
Mar 3, 2008
I have a worksheet where I want to compare values in two of the columns.
In column B there are EAN codes consisting of 13 digits.
In column E there are 5-digit numbers.
What I want to do is to compare the 5 digit number with the EAN code where these digits should be in position 7-12 in the EAN code. Those numbers in column E that doesn't have a match in column B should be marked (for example that the background color of that cell is set to "red").
Example:
B E
XXXXXX12345X 12345 (match - do nothing)
XXXXXX12346X 12346 (match - do nothing)
XXXXXX12348X 12347 (no match - set background color to red)
XXXXXX12349X 12348 (match - do nothing)
XXXXXX12350X 12349 (match - do nothing)
XXXXXX12351X 12352 (no match - set background color to red)
There are more values in column E than B.
In all there are close to 4500 rows so I really could use a nifty macro to do this job.
View 9 Replies
View Related
Nov 26, 2008
I have 8 columns of data, the first 4 and the last four columns have the values which correspond to each other.. Here is an example:
VALUES(A to D)NAMES(A to D)
ABCDABCD
1.3451641.3383581.286221.359808321325370391
So value 1.345164 corresponds to 321 and 1.28622 to 370. I need a function that will return a value from one of the VALUES columns which corresponds to the second smallest cell value from the NAMES columns. For example – here the second smallest number in NAMES column is 325 so the function would return the corresponding value of 1.338358.
View 9 Replies
View Related
Jun 30, 2009
I have two columns of data, in A and B. Column A has about 500 rows of numbers, while column B only has about 150. All the numbers that are in column B exist in column A.
(Column B is a monthly product production list, while column A is a "master list" of all products that can be produced)
I need someway to match the data in Column B with Column A so they line up.
I was thinking something like this, but don't know how to do it:
"Where value in column A = value in column B, then copy this data into cells D1 and E1" (so the values line up next to each other)
is this possible? Maybe with some advanced filter? Or a macro? It seems kind of silly, but I just need to have the data next to each other without doing it manually.
View 11 Replies
View Related