Forum Discussion
excel table
- Jul 31, 2022
Hiporridge,
I thought you wanted to do the assignment themselves as a school project. How many points will I get from the teacher? 🙂
I have now added new formulas to the file. The result does not match the manual specifications, as there were already errors in here.
I also tidied up so that no connected cells were left in the table.
Have a look at it and see if it corresponds to your ideas.
Unfortunately, that image doesn't provide much help in understanding how you array your information in that table. So it's hard to give much in the way of the "direction pointing" that you're seeking.
One suggestion: look into the new FILTER function. It can do quite a few things that VLOOKUP can't.
If you can't resolve your situation with that, could I suggest you come back and post either the actual spreadsheet you gave there (or a mockup without revealing any actual recipes, but enough to appreciate how you are organizing the info on those allergens...... if you can't post the XLSX file here, post it on OneDrive or some other cloud service, and post a link to it here.
- porridgeJul 31, 2022Copper Contributor
In this 1st pic, I have the recipes down and sideways, then in the middle, I am trying to find the answer to that allergen that isn't common with the other recipe. For example, recipe 1 has milk and eggs only no mustard, so when I am cooking my next recipe 2 which consists of mustard and eggs, the answer I should get in the middle cell should be milk only (because milk is not part of recipe 2) (But if I am going from recipe 2 to recipe 1, then the answer should change to the allergen mustard, as there's mustard in 2nd and not in 1st recipe)
The 2nd pic is the data from which I have to get the answer. (only the 1st table in the pic should be considered)I hope I was able to explain the situation clearly. :))
till then I would try the FILTER FUNCTION.
- dscheikeyJul 31, 2022Bronze Contributor
Hi porridge,
I have tried to understand your problem. I also approached the matter with FILTER(). But I also need an auxiliary column (column "R") Please do not delete it. If you move it, the formulas have to be adjusted with INDIRECT(). Please have a look at it and see if it suits your needs.
- porridgeJul 31, 2022Copper Contributor
dscheikey https://docs.google.com/spreadsheets/d/1PVcqYU_Zq23ARjiNtALBSLGqOdA-nvY5/edit?usp=sharing&ouid=115161584172678082193&rtpof=true&sd=true
The file you shared it is good when I am going from recipe 1 to 2 to 3 to 4 and so on.
I have attached the XLSX link to my file.
In my previous reply, I mentioned that when I am going from 1 to 2 the answer will be xyz, and then when am going back to 2 to 1, the answer will be different as the allergens present in both the recipes are different. And also there are recipes where they have the same allergens so the answer ends up being NA due to the same allergens.
you can go through my xlsx file to understand the data available. i have written the answers for the 1st 5 recipes manually so it gives an idea. the 2nd sheet in the file is the reference file. :))