I want to know how can I do this in Excel.
Here is a sample
column A column B
-------------------------
1 2
2 5
3 4
4 1
5 3
I want Excel to check column A and B, then if it finds any match, move them to another sheet.
So in another sheet, I should have a list with its data sorted in front of each other based on similar code.
Click here to see the photo
thanks
Use match()
Sheet2:
A1:
=A1
B1:
=indirect("sheet1!B"&match(sheet1!A1,sheet1!B:B,0))
I have not tested it but A1 should give you the value of sheet1 A1 and B1 should give you the matched value (if it excists) of A1.
I can't test it as I'm laying in bed with my phone.
Because I'm at work I have to use Swedish formulas, but it's the same formula, it's only translated.
Related
what is the formula to combine 2 column into 1?
(sheet link included : here)
for example :
Column A
Column B
Cell 1
Cell 2
Cell 3
Cell 4
Cell 5
Cell 6
become :
Combined
(with the spacing blanks included)
Cell 1
Cell 3
Cell 4
Cell 6
Cell 2
Cell 5
this is the database primary sheet, so the plan is i will load/link from this database sheet to another sheet (plus in case i have another cell to add between, it will sorted out automatically)
i try arrayformula({A:A;B:B}) but it tells me to add another row ?
help please
formula tried :
arrayformula,
flatten,
(it tells me to add another row?)
unique
(it overwrite the doubles? and remove blank space?, i need the text to be it as it is)
Try the following formula for raw materials. Then use same formula for packaging and change column references.
={FILTER(A:A,A:A<>"");" ";FILTER(E:E,E:E<>"")}
Edit: To include blank cells try this formula-
={C1:INDEX(C1:C,MATCH("zzz",C1:C));" "; G1:INDEX(G1:G,MATCH("zzz",G1:G))}
I have 2 sheets like the following:
Sheet 1
Sheet 2
I want to enter the values from column B on Sheet 2 into column B on Sheet 1.
In Sheet 1 there are some double/duplicate data such as:
Aek Godang, dan Aek Kanopan
so when I use the formulas:
=VLOOKUP(A1,$Sheet2.A1:B15,2,1) or =INDEX($Sheet2.A1:B15, MATCH(A1,$Sheet2.A1:A15,0),2)
on row 14 where there is the same data as the previous row, it will always be an error
how to solve it or the formula so that the result can be like this:
within GS in B1 use:
=INDEX(IFNA(VLOOKUP(A1:A; Sheet2!A1:B; 2; )))
You need only this, enter the formula in cell B1 of sheet 1 and remember to press cse as its an array formula(for excel 2010 till 2019).
=SMALL(IF(A1='Sheet2'!A$1:A$15,ROW('Sheet2'!A$1:A$15)),1)
=INDEX('Sheet2'!B$1:B$15,SMALL(IF(A1='Sheet2'!A$1:A$15,ROW('Sheet2'!A$1:A$15)),1))
The first link given in the comment with countif doesn't work. Aggregate Function is not available in Google Sheet. In Libre office Small function does work.
With COUNTIF error will be showing, wrong way to resolve.
looking for some help speeding up sorting pages on a spreadsheet.
Currently we have 4 sheets absolutely packed with UK postcodes/zip codes.
At the moment we go into each sheet and sort the entire sheet to show the information for the specific postcode we enter. (Always returns one line of info each sheet)
Is it possible to just have a separate sheet where we enter the postcode it it finds the match from each sheet and displays 1 line from all 4 sheets? Hopefully that makes sense.
A idiot's guide tutorial would be great
So, let's say we have four sheets (sheet1, sheet2, sheet3 and sheet4). They all look like this:
Create your 5th sheet. Here, I'm calling it "lookup_here". You should look up how to use vlookup formulas as I'll fail to completely explain it here for lack of time. Basically, you are :
Looking up a value (such as 5F3322 postal code) in a table array
(such as sheet1 columns A, B, C and D.... keeping in mind that your
lookup value must be in the first column of the array)
Then returning the column index (like column B is 2, column C is 3, etc).
And finally stating if you want an exact match (false) or approximate
match (true). Almost always use false.
Here is what the final output would look like, and I'll put some sample formulas below the picture.
So, you'll input your postal code value in cell B1. Then you will have formulas in B3 through D6. It will take some time to build these.
B3 Formula: =VLOOKUP($B$1,Sheet1!$A:$D,2,FALSE)
B4 Formula: =VLOOKUP($B$1,Sheet2!$A:$D,2,FALSE)
B5 Formula: =VLOOKUP($B$1,Sheet3!$A:$D,2,FALSE)
B6 Formula: =VLOOKUP($B$1,Sheet4!$A:$D,2,FALSE)
Column C formulas are similar, but the 2 before false will be a 3.
Column D formulas are similar, but the 2 before false will be a 4.
I had this formula in GoogleSpreadsheets: =filter(A1:C, A1:A=1)
But obviously I cannot use that in Excel.
Is there an alternative way of doing this using a formula in Excel, without a macro or script?
What I am trying to do is Find a cell containing specific text, and copy that row to new columns.
Say I have columns A,B, and C
A1= 1 B1= xxx C1=xxx
A2= 2 B2= xxx C2=xxx
A3= 1 B3= xxx C3=xxx
I would like to search for "1" in column A and return the match's entire row to say E,F, and G.
So, A1 B1 and C1 and A3 B3 and C3 would be displayed in E1:G1 and E2:G2 respectively.
EDIT: This is my actual sheet below, I was just trying to keep it simple, by using my text example. My formula seems just about there to achieving my result, but something is still a bit off. "=IFERROR(INDEX(A$2:A$200,SMALL(IF($D$2:$D$200="WR",ROW($A$2:$A$200)-1),ROWS(A2:A2))),"")"
in E1
=IFERROR(INDEX($A$1:$C$15,SMALL(IF($A$1:$A$15=$K$1,ROW($A$1:$A$15)-ROW($A$1)+1,""),ROWS($A$1:A1)),COLUMN(A1)),"")
Enter with Ctrl+Shift+Enter
Copy across to G and down
K1 contains the "search" value for column A i.e. 1
I'm certain it must be possible but I can't find the way to do this.
I have 2 columns, one with numbers and a second column with dates.
for example:
number date
1 21-Jul
2 22-Jul
3 23-Jul
4 24-Jul
5 25-Jul
6 26-Jul
7 27-Jul
8 28-Jul
9 29-Jul
10 30-Jul
At the top I have 2 cells
one where I want to enter the relevant number and one where the connected date should be displayed.
Say the cell with 1 is cell B10 and the first date is C10
If I enter 1 in the cell above the other cell shoould display the date from C10
If I enter 7 in one cell the other should display the date from C16.
How do I use the number entered in one cell to point at another cell?
I tried things like
A1 - cell with the number
B1 - =C(9+A1)
but it isn't that simple.
It's frustrating how something that seems so simple is impossible for me to figure out.
I look forward to your replies.
I think you need the function VLOOKUP. Specifically, in cell B1 enter:
=VLOOKUP(A1,$b$10:$C$20,2,false)
Where
A1 is the input cell,
B10:C20 is the range containing your numbers/dates
2 tells EXCEl to lookup the value in the second column
FALSE is a setting that forcesw Excel to find an exact match
You could also try the index-match function combination.
=INDEX ( Column I want a return value from , ( MATCH ( My Lookup Value , Column I want to Lookup against , 0 ))
Rather than give you a brief but possibly inadequate explanation, I'll give you a link to a thorough summary of how Index-match works:
http://www.randomwok.com/excel/how-to-use-index-match/