ExcelNewbie: Matching cell information across worksheets - excel

Please forgive me if this is simple...I am not an Excel expert and this is causing my nose to bleed(!)
Firstly I am using Excel 365.
I am working on a Bonus Calculator Sheet and the system is VERY complex, but I have reduced it to a two column table.
Column A is the company success "number" and column B is the % bonus it draws. This is all on worksheet B.
Worksheet A contains salary stuff and the company success number sits at the top and is not changed. What I need to do in pseudocode is:
Take value from Sheet A Cell A1
Find match in Sheet B Column A.
Return value next to it in Column B to Sheet A somewhere.
My life is mainly spent in the world of Python and this looks SO simple - but any help you experts could offer would just make my day rosier...if anyone can help I will give my two dogs a biscuit to show the love(!)
Thanks.

Seems pretty simple.
=VLOOKUP(A2,SheetB!A:B,2,FALSE)

You could also try using index match formula
=INDEX(SheetB!B:B,MATCH(A1,SheetB!A:A,0))
Where A1 is the value that you want to lookup in SheetB in range A:A.

Related

Build hyperlink with VLOOKUP [duplicate]

I have a status update sheet (sheet1) in which team members have a line per action, and each action has a reference number (s1, columnA).
In another sheet (sheet2), I have the team leads write their own status updates, but they may not necessarily reference every single reference number, nor will they do it in the same order as sheet1.
Basically, what I'm looking for is a column in sheet1 to show a link automatically IF the reference number in columnA sheet1 is also found somewhere in columnB in sheet2.
Is this possible? If so, how would I work this? I'm hoping to use a formula, but I'm not sure if that's possible. Hoping to use VBA as a last resort since this will be a shared spreadsheet and the probability that someone might screw it up is decent.
Thank you, and please let me know if I should clarify anything.
What you are looking for is a dynamic hyperlink.
So, let's assume that you have on Sheet1 all the
team members with the (column B)
team leads and the (column A)
reference / project numbers (column C).
On Sheet2 we have a table with various information and the same reference / project number in column E.
Then you can add a new column D to the table on Sheet1 which you might want to name Links and the formula here should be:
=HYPERLINK("#Sheet2!E"&MATCH(D2,Sheet2!E:E,0),"Link to "&D2)
If you are using tables with named columns that you can also use:
=HYPERLINK("#Sheet2!E"&MATCH([#[Reference Number]],Sheet2!E:E,0),"Link to "&[#[Reference Number]])
Of course you can adjust the alternative text to something more suitable.
Maybe the following picture helps explaining the above:

SUM of VLOOKUP functions meeting criteria in Excel

Sorry for the macabre subject matter, but I need to add the ages up of a group of people IF they have died.
My data is structured as follows:
Sheet A has the list of people to analyze.
Sheet B is an essential database of all people, with a Yes/No column for if they are alive, and another column for their age.
Basically, I want to get the SUM of ages of the people on a list on Sheet A IF the person is dead.
In my head, it combines the VLOOKUP, SUM and IF functions, but not quite sure how. I want the result in ONE cell.
Thanks for any suggestions!
For formula matters, let's assume the data is structured as below, with the highlighted cell where I want the formula to say 60:
Due to the data structure you provided if you only want to sum the names in Group 1 that are dead then you would use:
=SUMPRODUCT(SUMIFS(E:E,F:F,"No",D:D,B1:B3))
If the Names are not important then use #JoeJam's answer.
You can use =SUMIF(C2:C4,"No",B2:B4) where the age is in column B and Yes/No is in column C.

Excel compare two columns if equal gain results

I have trouble get a formula done in Excel document. Hope you can give me a hand. See this image so I can explain to you better:
I need the names and the numbers which are in the first sheet to be compared with the same color columns in second sheet. If there are matches in one of the data (names or numbers) the green result in the second sheet to be transferred in the Z column of the first sheet.
PS: it will be very nice if I can get different colors of z column for 1 match and for 2 matches.
Hope you understand me, sorry for any bad English.
I will assume that by "It is impossible for that" you mean "It is impossible for both values in any given row to match their respective columns in the table on Sheet2."
Try putting this formula in cell Z1 and populate down:
=CONCATENATE(IFERROR(VLOOKUP(I1,Sheet2!B$1:C$5,2,FALSE),""),IFERROR(VLOOKUP(M1,Sheet2!A$1:C$5,3,FALSE),""))

Copy data from another cell if criteria is met

I have quite a problem. In the excel spreadsheets, I have a lot of data entered into one main spreadsheet and some of the into another.
In the main Spreadsheet (Sheet1), I have column L, that has tons of entries of unique numbers. Also, I have a column Q that stores another data for a lot of entries into the sheet.
In another sheet (Sheet2), I might have some of the entries that can be the same with the column L in the Sheet1, and they are stored in column D, on Sheet2. So, if those two sheets entries matches (L:L in Sheet1 with D:D in Sheet2), I want to have the Q entry from Sheet1 into my, lets say N column at Sheet2. If they don't match, blank would be ok.
I've been searching the solution for quite a time, found some on Microsoft official website, but I haven't been able to apply it.
This one was the closest solution I could find, but, since I'm newbie with Excel, I haven't been able to implement it correctly.
Edit:
To Illustrate a bit, here is exactly what I am looking for:
Lets say:
Sheet1
L2=115457; Q2=2148446
L3=381493; Q3=Blank
L4=121214; Q4=484846
L5=151515; Q5=Blank
Sheet2
D143=381493; N143=(need input from Q2)
D523=121214; N523=(need input from Q4)
D968=151515; N968=(Blank)
Thanks in advance.

Excel 2016 Complex IF statement from multiple sheets adding data from one to the other if a condition is true

So I've been asked to perform a function in a workbook that has me confused a little. I have used nested If statements so I think that's where I need to start but I don't know how to formulate it. So it goes something like this...
IF data on Sheet 4 Column A is a match to data on Sheet 8 Column Q Then place calendar Date From Sheet 4 Column G in Sheet 8 Column S.
Can someone help me out? Thanks.
Something like this in Sheet8!S1:
=IF(Sheet4!A1=Sheet8!Q1,Sheet4!<calendar date>,"didn't match")
You didn't tell us what column the calendar date is in on Sheet4 so I've left that bit for you to fill in.

Resources