I have two tables
In list TEST22, which fruits did the buyer buy!
https://docs.google.com/spreadsheets/d/1wOZWSPapMTnLGco4POGjsO2nKPdCNIiD_TCsfFjegPs/edit?usp=sharing
In the TETS2 sheet, I want to select a buyer and display which puffs he did not buy
There is a table with all fruits
https://docs.google.com/spreadsheets/d/1u0k3gfDjyWJm3UZlCp3dm1T6QnrM9k3o_9W8nnrvhJo/edit?usp=sharing
How to make column C "What I didn't buy" display a list of fruits that the buyer did not buy ?
It turns out to compare two lists and display what you didn’t buy
TRIED ={QUERY(.....) and not QUERY(...) ) but that doesn't work(
VLOOKUP won't work read data from left to right (
use:
=FILTER(J2:J; NOT(COUNTIF(B2:B; J2:J)))
Related
I did a google form of items I'm selling, and the form is linked to a
google sheet. I want to extract the prices and add them in a separate column.
In the entries I have the price and name of the item, but I want to add only the prices
in the next column.
I was using:
=VALUE(RIGHT($D2, 4))
but that will only extract the price when there is one item.
Any information will be helpful!
SUM() doesn't care about text so you should be able to do:
=SUM(SPLIT(D2," ,$"))
Try
=sum(split(join("|",REGEXEXTRACT(substitute(A1,"$",""),REGEXREPLACE(substitute(A1,"$",""),"(\d+.\d+)","($1)"))),"|"))
I have a sheet called 'Student Contact Detail' as Sheet1 and another sheet called 'Student Credential' as Sheet2.
->Sheet1 has columns (Sr. No.>(A), Contact No.(B), Department Name(C), Student ID(D)).
->Sheet2 has columns (Sr. No.>(A), Contact No.(B), Department Name(C), Student ID(D), Login Link(E), User Name (F)).
I can fetch data of Row (C)& (D) by (A) with formulae "=vlookup($B2,'Student Contact Detail'!$B:$D,2,false)" & "=vlookup($B2,'Student Contact Detail'!$B:$D,3,false)".
But I also want a functionality, where I can fetch Contact No.(B) using Department Name(C).
Tried Formula =vlookup($C3,'Student Contact Detail'!$B:$D,1,false) but is showing #NA error.
ANY SOLUTION PLEASE.
Vishalsagar, I assume that there only one Contact No for each Departent Name? If so, try this:
=VLOOKUP($C2,{'Student Contact Detail'!C:C,'Student Contact Detail'!B:B},2,0)
Since VLOOKUP can only look to the right, we cheat, and build a virtual array, using {...}. We put column C first, and then beside it, we put column B, like this: {C:C,B:B}.
Then we use VLOOKUP to lookup column C, and find value B.
Other ways such as INDEX(MATCH can also be used, but I like this trick of just reversing the columns with a virtual array, for its simplicity.
I have a spreadsheet with 2 main columns.
Column A is the student's name.
Column B is the student's grade.
Other columns (not shown) list various information about the student that the end users input.
End users click on the Data Validation Arrow to select the student in Column A, and the student's grade is auto populated in Column B.
The formula in Column B is:
=IF(A2="","",Index(All!$B:$B,Match(A2,All!$A:$A,0)))
The All sheet contains a master directory of the Students and their Grade level assignment.
The Problem:
When users attempt to re-sort the data using the Sort A-Z menu option in B1, it includes the blank cells in the sort - The blank cells come first, moving all the relevant data to the bottom of the sheet.
I understand that G-Sheets considers "" to be text. Is there another method to write my formula that would keep the Grade column blank, but allow for the sorting feature to function as end users would expect?
You can implement two additional comments where you filter the results before sorting them:
=SORT(FILTER(A2:B,not(B2:B="")),2, true)
I want to make a list. Column A are the models. So model1, model2 and model3.
Next to each model is what goes into it. So going along with the picture A3="model" (B3:D3=dog, cat, horse)
When I type the word "Model1" into cell G3 I want it to display the list of items from b3:d3 under neither it. But if I type model2 I want it to display those items instead and so on.
Example these will be on sheet1
A3"model1" b3(dog) c3(cat) d3(horse)
A5"model2" b5(wine) c5(beer) d5(pop)
Etc.
This will be on sheet2
G3"model1"
g4-dog
G5-cat
G6-horse
or
G3"model2"
G4-wine
G5-beer
G6-pop
So if I type model2 into G3 I want it to display those items instead going vertical
I was trying a vlookup but could only get it to display 1 cell instead of all 3 items.
This is for Google sheets
try:
=ARRAYFORMULA(TRANSPOSE(IFNA(VLOOKUP(F2, Sheet1!A:D, COLUMN(B:D), 0))))
I have a spreadsheet that tallies sales over time, including sales person, office they work out of, and the price of whatever it is that they sold. I am attempting to create a two-column filtered list by multiple criteria. The data looks like this:
Date Name Office Price
5/5/12 Joe OW 220000
6/1/12 Jim SOL 100000
What I want to be able to do is create a two-column entry that sums the price column, but uses multiple critera from the first three to do so. For instance, "everyone named Jim who sold something in May", and then I'd like to sort that by the top three.
Using items like:
=FILTER( C1:C ; D1:D="OW"; month(B1:B)=month("5/12/12"))
and
=ARRAYFORMULA(frequency(MATCH(E1:E&counta(E1:E),UNIQUE(E1:E&counta(E1:E)),0), MATCH(UNIQUE(E1:E&counta(E1:E)),UNIQUE(E1:E&counta(E1:E)),0)))
I can filter and tally, but I am unable to replace the frequency mentioned above with a summation of the price column.
Rather than using FILTER you could put together something using SUMPRODUCT:
=arrayformula(sumproduct($E$2:$E$3*($C$2:$C$3=C2)))
If you have column E as price and column C as name, this creates a new column that shows the total earnings for each name, next to every instance where that name appears in the array. You can apply further conditions within the SUMPRODUCT call as needed. You could then apply UNIQUE to deduplicate and sort the resulting table to see the top 3.