Friday, September 9, 2011

yogi_Extract and Collate Other Data From A Form Based Spreadsheet

Yogi Anand, D.Eng, P.E.                                         Google Spreadsheet                            www.energyefficientbuild.com
Cammo said:
How can I extract and collate "other" data from a form based spreadsheet?
I've tried searching for an answer to this, but have thus far failed to find anything relevant. I'm quite surprised, because I can't be the only person who's wanted to do something like this...
I have a form based spreadsheet that has radio button questions with answers like: Yes, No, Indifferent, Other. It also has check box type questions with answers like: Apple, Banana, Mango, Other.
In the above scenarios, somebody could click the "Other" radio button and enter "Depends on my mood". Equally, with the check boxes they might tick Apple, Mango and Other, and then enter "Tomato" for the "Other" entry.
What I want to do is extract these "Other" responses and collate them under a corresponding question heading.
An example of results might be something like:
--begin--
Other responses:
Do you like to go out?
Depends on my mood.
Only on Fridays.
What's your favourite fruit?
Tomato
Grapefruit
Orange
--end--
With the radio button results, I could look for something that's not /Yes|No|Indifferent/ and take action based on that, such as copy to a list on another sheet.
It seems trickier with the check boxes, as I'd only want to copy out content that isn't /Apple|Banana|Mango/ for example. I'm not sure how I can go about this.
Also, the methods above seem very labour intensive in as far as I'd have to copy all the non "Other" text into formulas by hand to get it to work. Is there any way to reference the form text directly from the spreadsheet?
Thanks in advance for any help.
------------------------------------------------------------

Wednesday, September 7, 2011

yogi_Sum Up Entries In A Range To Exclude Items As Specified

Yogi Anand, D.Eng, P.E.                                         Google Spreadsheet                            www.energyefficientbuild.com
Nomad65 said:
I want to add up the contents of a column conditional on the value in another column
I'm creating a spreadsheet of monthly expenses, and I want to be able to selectively include/exclude certain entries based on the contents of another cell in the same row. For example, let's say column E contains the expense amounts, and column F contains a code such as "house" or "car".
I have a total for "all monthly expenses", but now I want to create totals for things like "all monthly expenses if I no longer had a car" -- and for that one, I'd exclude all the column E entries with the note "car" in column F.
I could do it brute force with a nasty set of "IF" statements. And of course I could copy the entire table and add a formula that changes the values to zero depending on the contents of column "F". But I'd like to do it more elegantly, and in a way that easily expands if I add new expenses to the spreadsheet. I have the sense that some combination of VLOOKUP and IF could do it, but I can't figure it out.
Thanks for any help!
--------------------------------------------------------------

Monday, September 5, 2011

yogi_Make Validation List Of A Cell Dependent On The Validation In Another Cell

Yogi Anand, D.Eng, P.E.                                         Google Spreadsheet                            www.energyefficientbuild.com
WvdR said:
How do I make the validation list of one cell variable dependent on the validation in another cell
I'm using Google Docs Spreadsheet and have the following problem.
I'm trying to put together a logfile for my team in which I have 5 main categories and several subcategories of issues.
So for example:
A1: Categorie
A2: either job unfinished, job done, job delayed, job cancelled.
I used the 'validate data' function with a list to create a drop down menu.
B1: Cause (sub-categorie)
B2: depends on what I choose in A2. E.g. when I choose job unfinished, B2 should have a value of 'technical error, human error, deprioritised, other', whereas when A2 would have been 'job cancelled', B2 should have a value of 'customer's request, company's decision, other).
Right now my B2 cell has a drop down list consisting of all the different subcategories, but I would like to make the validation list dependent on my choice in A2.
If anyone has any suggestions, that would be great! Thank you very much in advance, appreciate it a lot!
---------------------------------------------
In my proposed solution, I have used Data Validation as well as Named Ranges as delineated in the spreadsheet

yogi_Flip Contents Of Two Columns With A Single Formula And Post Results In Another Sheet

Yogi Anand, D.Eng, P.E.                                         Google Spreadsheet                            www.energyefficientbuild.com
rajvivek said:
How to Flip two columns contents with a SINGLE formula?
How is it possible to have a SINGLE formula to pull the content from column A to column D and from B to column C?
--------------------------------------------------------------------------
There is no direct way to do it ... however
A.  1) I can do it in another sheet, say Sheet2
      2) if column1 row1 of data is blank (or inconsequential)
      3) if there is a blank column available to the left of where data would be posted in Sheet2
or
B.  It can be done using the QUERY function, as shown in Sheet3

so here we go ...

Friday, September 2, 2011

yogi_Sum Up Specified Attribute Of Like Items In a Separate Sheet

Yogi Anand, D.Eng, P.E.                                         Google Spreadsheet                            www.energyefficientbuild.com
DaveCable said:
Sorting and Adding
Hello I am trying to like items and their assiciated data on one sheet and sum the results on another sheet.
I would like a formula that searches for color, grabs the total weight for that color and adds those weights together.
I am trying to use vlookup, and it's great at returning the first value but I can't quite figure out how to get all results.
The formula I am working on is in B2.
Right now I have: =vlookup(A2,Sheet1!A2:I100,9,false)
https://docs.google.com/spreadsheet/ccc?key=0AjvC40DK4abZdHVENE93THF4UDZ0cGtCVENoYk5oZWc&hl=en_US
Any help would be appreciated!
---------------------------------------------------
I have added alternate solutions in several different sheets ...

yogi_Compute Stats Such As Wins Losses Etc For Games Played By Specified Teams

Yogi Anand, D.Eng, P.E.                                         Google Spreadsheet                            www.energyefficientbuild.com
Shawn242 said:
Making a score sheet, referencing data help
I am making a scoresheet, with 3 different sheets. Schedule, Standings, and Player Statistics. What I'm trying to do, is have the Standings "call" from the Schedule, and get each win for a team, total it, then place that total in the Standings sheet. Is this possible?

------------------------------------------------------------------------

yogi_Combine Text From Specified Columns And Extract AlphaNumeric Characters Only


Yogi Anand, D.Eng, P.E.                                         Google Spreadsheet                            www.energyefficientbuild.com

ExtraMediumInc said:
how do i take the combine the text values in columns A and C, remove spaces, and put into column J for all 3000+ rows?
I have a spreadsheet filled with information of over 3000 people. I want to make an extra column (J) that combines the text in columns A and C in each row, removing any spaces, periods, commas, dashes, etc.
--------------------------------------------------------------

In this proposed solution I used RegexReplace function to negate replacement of all AlphaNumeric Characters which of course results in extracting only AlphaNumeric characters