excel to put sequence number but skipping two rows - excel

I need one help regarding excel. I want to add the sequence number in sheet 1 from sheet 2 by
skipping 2 rows in between. For e.g. as defined below. Row1 will lookup 1 from sheet 2, row 2 & row 3
should be blank and then row 4 will pick 2 from sheet2
Sheet1 Sheet2
Row1 >>1 1
Row2 >>blank 2
Row3 >>blank 3
Row4 >>2

=IF(ROW()/3=INT(ROW()/3),INDEX(Sheet2!A:A,ROW()/3),"")
This assumes you start at row 1. And that the sheet 2 stuff is all in column A.

Related

How to apply COUNTIFS Formula against cells on same row within a range

I am trying to count the number of occurences in a range based on 2 criteria. The first criteria is based on Text, the second criteria is based on 2 cells in the repsective row of a range. I cannot get the count to work - it counts incorrectly.
Example....
COL A COL B COL C
ROW 1 Eggs 2 3
ROW 2 Eggs 3 1
ROW 3 Eggs 4 9
ROW 4 Eggs 1 2
ROW 5 Bacon 2 1
ROW 6 Eggs 4 1
The formula being applied is:
=COUNTIFS($A$1:$A$6,"Eggs",$B$2:$B$6,">"&$C$2:$C$6)
It doesnt work correctly......
I would expect the result to be a count of 2, as there are 2 occurences of Eggs where column B is greater than column C
Your ranges are not the same size and you should likely be using SUMPRODUCT instead of COUNTIFS.
If you have a header row in row 1,
=SUMPRODUCT(--($A$2:$A$7="eggs"), --($B$2:$B$7>$C$2:$C$7))
If there is no header row and your data starts in row 1,
=SUMPRODUCT(--($A$1:$A$6="eggs"), --($B$1:$B$6>$C$1:$C$6))

Excel: search value in array and fetch row and column name

I have a spreadsheet of available samples across 45 boxes, arranged stacked with column headers from 1 to 10 and row headers from A to J. I'm looking for a way to fetch the box, row and cell number if I lookup an ID (prefixed with B).
Sheet 1 is a list of animal IDs that I want to know if a sample is available for
Sheet 2:
Box 1
1 2 3 4 5 ... 10
A B43 B12 B3 B6 B103
B B13 B14 B78 B51 B63
C B78 B33 B99 B43 B92
...
J
Box 2
1 2 3 4 5 ... 10
A B2 B6
I have tried doing nested if functions by columns:
if(match(A2, Sheet2!$B$2:$B$521,0),"1",if(match(A2,Sheet2!$C$2:$C$521,0),"2","")
...but I've been getting #N/A if A2 is in column C.
I've resorted to re-labelling the left-most column to Box 1 A, Box 1 B, Box 1 C... so on, and doing:
=index(Sheet2!$A$2:$A$521,match(A2,Sheet2!$B$2:$B$521,0),0)
...and duplicating the function for **Columns 1 to 10*.
Sheet 1:
Animal ID Col1 Col2 Col3 Col4 ...
B12 . Box 1 A . .
B43 . . . Box 1 C
...
Is there an easier way to fetch the location of a sample from an array?
If your Sheet2 looks like this.
and you want the data like this in Sheet1.
Then enter this formula in Cell B2 of Sheet1 and drag it down and across.
=IFERROR(CONCATENATE(INDEX(Sheet2!$A:$A,(MATCH($A2,Sheet2!B:B,0))-MOD(MATCH($A2,Sheet2!B:B,0)-1,12),)," - ",INDEX(Sheet2!$A:$A,MATCH($A2,Sheet2!B:B,0))),".")

Filtering values based on comparisons with adjacent columns

I want to compare column A in sheet 1 with column A in sheet 2, and only return matches from sheet 2.
I then, want to use the matching column A rows as a basis for a second comparison. The second comparison is to compare column B in sheet 1 with column B in sheet 2 and only return non matches from sheet 2.
Assume this is the data on sheet 1:
A B
2 4
2 4
2 3
3 3
and this is the data on sheet 2:
A B
2 4
3 3
2 4
3 3
So, only the third row will pass on both conditions. Any ideas how this can be done?
I want to compare column A in sheet 1 with column A in sheet 2 and only return matches from sheet 2
Type on cell C1, on sheet 1:
=IF(A1=Sheet2!A1,"True","")
Drag the formula to all rows on column A, which contain non blank cells.
The second comparison is to compare column B in sheet 1 with column B in sheet 2 and only return non matches from sheet 2.
Type on cell D1, on Sheet 1:
=IF(AND(C1="True",B1<>Sheet2!B1),"True","")
Drag the formula down.
Output on Sheet 1 should be like that:
A B C D
2 4 True
2 4
2 3 True True
3 3 True
Filter column C by True to observe the "first" condition's returns. Do the same to column D to retrieve the data which satisfies the "second" condition.

How to compare 2 cells to another 2 cells in a different sheet in excel?

I want to know how to compare or know the difference of 2 cells to another 2 cells in a different sheet in excel 2007
Example:
Sheet 1
A B
1 101 KIWI
2 102 APPLE
3 103 BANANA
Sheet 2
A B
1 101 KIWI
2 102 APPLE
3 103 ORANGE
I want to show the there is a difference in 3rd row on Sheet 1 and 2
Thanks
If you put =A1&B1 in C1 of each sheet and copy down then it is like comparing single columns. So with, in D1:
in Sheet1: =MATCH(C1,Sheet2!C:C,0)
in Sheet2: =MATCH(C1,Sheet1!C:C,0)
copied down in each case the resulting numbers should show the row number where the match is on the 'other sheet' (the lists need not be sorted) and otherwise #N/A for where matches have not been found.
There is obviously no need for the concatenation for the example provided, since the two 'A' columns are identical, but I take it that was because the example was simplified.

copy rows after each other excel

I have a Microsoft excell file: I want to copy 2 rows and add these to the previous row (the first row). I give an example:
row1 -> 0027448 R 3 1 203,45 22375 EDS001 name1 name1 eds1
row2 -> 0027448 R 3 1 203,45 22375 EDS001 name2 name2 eds1
row3 -> 0027448 R 3 1 203,45 22375 EDS001 name3 name3 eds1
My question is: how can I copy row1, row2 and row3 after each other:
course without manually copying. but through formulas!
row1 ... row2 ... row3 ....
This program made ​​me more or less a good solution. Better solutions are still welcome!
I got the Excel plugin from this website: ASAP Utilities
How can I copy row1, row2 and row3 after each other? Of course without manually copying.
If you need copying after each other vertically, row by row, that seems to be simple.
In the very left cell of town you can just paste link to the very first cell of row1 (like: =A1).
Stretch it horizontally, then stretch the whole row1 (with formulas) vertically to the bottom.
This will copy itself, so rows 4,5,6 will copy rows 1,2,3.
Rows 7,8,9 will copy rows 4,5,6 (and again, it will be equal to rows 1,2,3) and so on as long as you need.

Resources