I'm looking for a formula to use in google sheets that creates a boolean when the conditions "House" and "Car" are both found in the other columns so
Name
Priority
Priority
Priority
Boolean in question
John
House
Car
Loans
Ned
House
Groceries
Car
Dom
Family
Car
Going Fast
Thanos
Stones
Balance
House
Homer
Donuts
Car
House
would become
Name
Priority
Priority
Priority
Boolean in question
John
House
Car
Loans
Yes
Ned
House
Groceries
Car
Yes
Dom
Family
Car
Going Fast
No
Thanos
Stones
Balance
House
No
Homer
Donuts
Car
House
Yes
How can I write a formula to create this outcome.
In the Boolean-in-question column, paste this formula:
=IF(AND(OR(B2="House";C2="House";D2="House");OR(B2="Car";C2="Car";D2="Car"));"Yes";"No")
If you have any difficulty mixing IF AND and OR, you can create extra columns like this:
IF operator:
Try:
=INDEX(IF(MMULT(ArrayFormula(REGEXMATCH(B2:D6,"Car")+(REGEXMATCH(B2:D6,"House"))),{1;1;1})=2,"Yes","No"))
A slight modification if the search words in one row can be repeated:
=INDEX(IF(((MMULT(REGEXMATCH(B2:D6,"Car")*1,{1;1;1})>0)+(MMULT(REGEXMATCH(B2:D6,"House")*1,{1;1;1})>0))=2,"Yes","No"))
Related
Basically I have a list of cars that I wish to hypothetically sell and captured the data in the Cars tab in this google sheet.
What I am trying to do is capture how many cars are for sale based on the car type and also consumer interest based on the car type. For example, how many "Y" the sports car has and store this total in a new tab called Consumer stats in this google sheet.
I dont know how to do a VLOOKUP so it extracts all the Y for consumer interest based on sports car for example
Any help will really mean a lot!
Thanks
Have you considered a pivot table? This seems like the perfect use case.
In your example sheet, I added 3 versions.
Your original ask, count of consumer interest by car type
Count of consumer interest by car type and model
Type and Model that have both interest and are for sale.
There are multiple tutorials online for how to set up pivot tables.
The pivot table can be more powerful if you used 0 and 1 for N and Y in your interest and for sale. Sheet's pivot tables don't do COUNTIF natively, and adding custom formulas seems like a lot of extra work.
We are setting up a form that is used for a student conference to score different proposals. Students fill out the form with their last name, their voter ID, their committee, the proposal number, and then grade the proposal on five different topics. The responses are sent to a google sheet. We use a separate sheet to query the responses so we can use formulas to calculate the scores. Here are the columns and what each does.
Timestamp- Time of vote
Last Name-Last name entered on form
Student ID-Student ID entered on form
Proposal Number- Proposal Number
National Relevance; Feasibility; Debatability; Evidence of research; Creativity - Scoring categories
StudentID Last name - looks up the last name associated with the StudentID entered from StudentData sheet
StudentID Committee - looks up the student's committee from the StudentData sheet based on StudentID
CommitteeName (there are several) - =iferror(IF(AND(TRIM(StudendID Last Name)=TRIM(Last Name),TRIM(StudentID Committee)=(CommitteeName)),SUM(Scoring Categories),""),"")
So we have figured out how to validate that the student entered the correct last name based on the id they input in order for their vote to count. The only issue is this will still count if a student has voted twice for the same proposal.
In another sheet, we us an AVERAGEIFS function to average the scores for each proposal number and committee that was input between two times (start and stop of voting).
We would like a way to add to the formula in the CommitteeName columns to only count one vote for each proposal number by a unique studentID so students can't vote twice. Is there a formula we can use here or would it be best to add this criteria to the AVERAGEIFS function where we average the scores? We're not sure what formula we would use in the AVERAGEIFS function. We thought of using UNIQUE but weren't sure if that would discard the student's votes on other proposals since each proposal is voted on using the same form.
I have a Google sheet Here is the spreadsheet which is used for determining the inventory at FIFO basis. I have different products that come into my stock and I sell them.
I bring in fruits and record entries in A to E columns using simple formulas. But the problem is here after the E columns from F to I. When the sale take place I increase the existing value in G1 and select E1, The formulas would dynamically display the selling price based on purchase price.
Say if I have sold 50 more apples then G1 becomes 550.
I am ok if the products are continuous like Green color (Apples), When the products are of different types they need to coined using SUMIFs or something else which I am not sure how to implement.
Please help to display based on yellow cells for entire table
Here is the
=MIN(C4,$G$1-SUM($F$3:F3))
Please see if this helps:
=IF(A4=$E$1,MIN(C4,$G$1-SUMIF($A$3:A3,$E$1,$F$3:F3)),0)
The formula is for F4 and needed to be copyed down.
It uses sumif for a product name + checks if current product is "apple" or one you've selected.
I have a google spreadsheet that is being used to develop student schedules. Students are separated into one of two "houses" of teachers on the grade level roster sheet, then each house is scheduled on another sheet in the workbook.
I need to generate a list of students who are marked for "beta" house on the grade level roster (students from all houses), but whose names are not yet listed on the house scheduling sheet.
I have tried
=Unique(Filter(Roster!A:A&A3:A30,Roster!B:B="Beta"))
as well as
=Filter(Roster!A:A,Roster!B:B="Beta",<>A3:A30)
I made some loose attempts with the Query function, but I really have no idea what I am doing with that function yet.
The reason for the inconsistent range sizes is that students with special needs are scheduled first, and then other students (Speech/504/ELL) are scheduled as another layer of the process.
The Grade level roster sheet:
The House scheduling sheet:
=Filter(Roster!A:A,Roster!B:B="Beta",ISNA(MATCH(Roster!A:A,A3:A30,0)))
I'm building a food ordering web application with a standard product/category setup - a category (for example Pizza) has many products (Pizza Salami).
Category
--------
id
name
Product
-------
id
name
category_id
The problem: the price of a category depends on the time of the day. For example for 2pm - 6pm and 9pm - 11pm the price for a pizza is cheaper.
How would I design the prices table and relationships in an effective way?
If your pricing is predictable, you could put a "base price" attribute in the product table, then read it from code, and calculate the "final price", depending on the time. You'll then store that final price in your orders table.
But if you want to be able to read tje final price from the database, I sugest you look into your database documentation, for how to create functions and views.