I am trying to pull prices from a file to a mixed tender file. My main subjects that I need to search for are POL, Destination City and Container Types. My 2 data sets are as below:
!
It is just a small portion to show the data type. I have cleaned the data a little bit too. so here is my code for taking the prices :
=VLOOKUP(P3,$A$2:$K$251,VLOOKUP(Q3,$A$2:$K$251,VLOOKUP(R3,$A$2:$K$251,5,),),)
it didn't work out and I only get error on container types, it cannot find it:
I am kinda stuck - what should I do? Kindly seeking your help.
Thank you
Try to use SUMIFS function instead.
In W3, copied down :
=SUMIFS($E:$E,$D:$D,P3,$A:$A,Q3,$B:$B,R3)
Related
this may be a fairly simple one but I have spent a significant amount of time troubleshooting my formula and cannot identify as to why it is not returning the desired result.
I am working with two columns of data (A and B) which reference deals that my team is working on. Column A denotes the team member who is allocated to said transaction, and column B states whether or not the transaction is currently live ("TRUE" or "FALSE"). I am looking to return the email address for said team member if the transaction is live ("TRUE"). There are three team members contained within the spreadsheet, so I am nesting several AND functions.
I have tried the following code:
=
IF(AND(A1="TRUE",B1="Name1"),"name1.lastname1#x.com",
IF(AND(A1="TRUE",B1="Name2"),"name2.lastname2#x.com",
IF(AND(A1="TRUE",B1="Name3"),"name3.lastname3#x.com",0)))
The formula is returning "0" for each value, despite some of them meeting the relevant conditions.
Any help would be massively appreciated.
Thank you,
Looks like you just mixed up the columns.
Swap B1 and A1 expressions.
Hoping you can help me out.
I have a total of three tables here. I've been trying to figure out a formula that will give me the header (the names) of the two criteria specified in H1 and H2. I was able to get the result I want, but for the first table only (Hailey).
The problem is to find out who among the three teachers handled the "subject" within the specified month as well.
Also, I couldn't figure out how to get all the results if ever there are two names that match the criteria. Thank you in advance for your help.
as Jeeped said above this is essentially bad database/table methodology but it is not hard to fix, what you need to do is create three columns one for the name, subject and month.
Then what you can do is just run a simple SQL/Google Query to find out who is doing what.
I've created a template based of your screenshot above but with three columns, have a play around and if you redesign your spreadsheet just let us know and we can help you to design a query for your issue.
use the drop downs to get your desired query, if you select name & month you get that range, if you select a month you get all names for that month.
https://docs.google.com/spreadsheets/d/1yERKtQocnVqopqh6CCn6Rdj143bYyr_IjSDnzCLSm_8/edit?usp=sharing
I am creating a spreadsheet to reconstruct an HTML export into an editable daily schedule.
The export contains info on what each person is scheduled to do throughout the day, and the spreadsheet turns it into a format with hourly columns.
Source data: https://imgur.com/6MAtxLA
Output: https://imgur.com/OI9RKC9
To do this, I've broken down what each person is doing into separate start and end columns, and used nested IF statements to piece it together.
The issue is that I've come up against the maximum amount of nesting, and I still need to add more, as there are more activities to cover. I'd like to know if there's another way I could go about it which wouldn't cause this issue.
The formula looks like this:
https://imgur.com/0R3FDhd
It's just saying that if the activity is on or before the current time, and hasn't ended yet, then it should show that activity.
Each line references a type of activity. The referenced cells look like this:
https://imgur.com/wjipfLT
There's a lot of repetition in the formula, and I hope there's a way to handle it so that each type of activity doesn't need it's own IF statement. However, I'm kind of stuck here. If there's anyone who knows a way I could change this, I'd really appreciate the help.
EDIT: Formula
IF(AND(OR(P[#6]=X!Z4, [#M]=X!Z4), S[#5] <> X!Z4), X!Z4,
IF(AND(OR(P[#6]=X!Z5, [#M]=X!Z5), S[#5] <> X!Z5), X!Z5,
IF(AND(OR(P[#6]=X!Z6, [#M]=X!Z6), S[#5] <> X!Z6), X!Z6,
...ad nauseam
First of all, thanks for all who read through - It's not easy to explain it with words, as iam not allowed to post pictures yet.
Here we go:
Imagine 2 sheets within an excel document.
Sheet1: The Matrix
In Column A you'll find a 'description text' for a specific problem
Column B (and the following) are filled with several information to the problem, but we don't need them for my current problem.
Sheet2: Relation
I've got another table with Error-Description and IDs. Unfortunetaly those who write the description text don't use the same sentences as I do for my error-description. But i need to get a relation, to further analyze the problem.
To do so, i created another sheet with 'keywords' and the ID of the error.
Trying several things iam not able to....: (Now the problem starts for all tldr;)
HOW do I build up the relation. Keywords are set as
"*test*" "*whaterrorcustomer*" and so on.
While the description text is more like
"We had a test here but it failed" and so on..
I want to add a column in the first sheet (sheet1: Matrix) with the ID.
So I need to search within the description text for the keywords and return the ID.
Any idea how I could do this?
Edit:
Here an picture (just got my rep. points) :
I want the Text beeing related to the ID by looking for the keywords.
Iam very thankful for ANY help
For those who face the same problem, got it solved.
=lookup(2;1/SEARCH(Relation!A$2:A$5;Sheet1!A2);Relation!B:B)
I have a question that I a may not be thinking correctly about. But I have an a long excel file that I pull from somewhere else with the following columns:
Project_Name1, Employee_Name1, Date_Worked1, Hours_Worked1
In another sheet I have these columns
Project_Name2, Employee_Name2, Begin_Date2, End_Date2, Hours_Worked2
This second sheet is filled with data, and works just fine.
However, it turns out that I have some employee names that I do not know that are also working on the same project. I need to figure out the names of the employees and then sum the number of hours they worked for a given period.
So I need a lookup with three criteria:
Project_Name1 = Project_Name2
Employee_Name1 <> {Array of Employee_Name2}
Begin_Date2 <= Date_Worked1 > End_Date2
Returning Employee name.
Once I have the employee name, I can do a sumifs=() and get the total hours they worked no problem.
I have tried a number of combinations of Index Match functions, using ctrl-shift-enter... and have not been able to figure out it. Any help would be greatly appreciated.
What you're talking about doing is extremely complicated and a little bit past what Excel was designed to do by default. However, there are a few workarounds that you can use to attempt to get the information that you're looking for.
It's possible to do multiple-criteria VLOOKUPs and SUMIFs by concatenating fields to make a multi-part identifier (Ex: Insert a new column and have a forumla in it like =A1&B1)
Open a new workbook and use Microsoft Query (I'm not sure if you can select from more than one sheet, but if you can select from multiple sheets like tables you should be able to write a semi-complex query to pull the dataset you want.
http://office.microsoft.com/en-us/excel-help/use-microsoft-query-to-retrieve-external-data-HA010099664.aspx
Use the embedded macro feature and use visual basic script to write out your business logic. (Hotkey is ALT+F11)
One way to do this would be to first create an additional column to the right of entries on the sheet you're trying to pull employee_name from: =ROW()
You could then use an array formula like you were trying to implement to pull the corresponding 'match' row:
{=SUM((project_name1=projectname2)*(employeename1<>employeename2)*(begindate<=date_worked1)*(date_worked1>end_date2)*(match_column))}
You could then use this returned match_column entry within the index as you described to retrieve the appropriate entries.