Friday, June 8, 2012

yogi_Rearrange A Table Of Appointment Not Sorted By Time Into A Table Of Appointments And Time To Next Appointment

Yogi Anand, D.Eng, P.E.       Google Spreadsheet    Post  #583    Jun 08, 2012     www.energyefficientbuild.com.

user Chematronix said:
Formula: how to obtain the closest match of a cell in its same column?
Howdy,
I want to find the closest match of a value in its same column.  Specifically, I've a column of Times (say, appointments), and I want another of Time Before Next Appointment.  For this I need to find the next appointment relative to the current row, and subtract the current time to obtain the difference.  The tricky part is, the sheet is not sorted by Time, so I can't simply subtract the current value from next row's.
Seems VLOOKUP should help, but it also would require sorting by Time; also, since I'm searching for a value in its same column, it returns that very same value. Is there an easy way to duplicate the target range, exclude the current row from it, and sort it by Time?
Or perhaps there's another easy way to accomplish this simple calculation?  Get the range as an array, sort the values and search for one that is bigger?
Here's my test sheet, feel free to add columns with new methods: 
https://docs.google.com/spreadsheet/ccc?key=0AsSi-TI7wOMqdFdxdm1aRHdfWDFqdjFLcnBWNFhxS1E#gid=0
I'm going to check scripting next, as hopefully that will provide much more flexibility (not to mention readability) than clunky formulas.  There must be a way to trigger a function to update a column every time a certain range is edited, right?
Any help is appreciated.

---------------------------------------------------------------------------------------
following is a solution to the problem

yogi_Compare ListA And ListB And Extract 1) All And 2) ExactMatch ListA Items That Are Also In ListB

Yogi Anand, D.Eng, P.E.       Google Spreadsheet    Post  #582    Jun 08, 2012     www.energyefficientbuild.com.

user Derges said:
Comparing two lists of strings
I'm probably being quite stupid here. I need to compare two lists of strings and determine which items in List A are also in List B.
I've tried EXACT and MATCH and a HLOOKUP but I think I've got the wrong end of the syntax stick.
Would anyone be kind enough to offer some advice?
----------------------------------------------------------------------------------------------------
following is a solution to the problem
by the way I don't think OP meant finding Exact matches even though the OP talked about using the Exact function, I have gone ahead with finding 1) All matches as well as 2) Exact matches only


Thursday, June 7, 2012

Wednesday, June 6, 2012

yogi_Compute Stats By Month From A DropDown And By Year for Values In A Table

Yogi Anand, D.Eng, P.E.       Google Spreadsheet    Post  #580    Jun 05, 2012     www.energyefficientbuild.com.

user Smileyninja said:
Trying to filter based on month
https://docs.google.com/spreadsheet/ccc?key=0AhckPttGQAT1dHVnQktJaDNGRUxrelBsMHdkZ3ZVQUE
I would like to be able to select a month in the dropdown and it would filter the schedule by the month. Ideally, I could then export to a google calendar.  I feel I'm 70% of the way to get this to work.
--------------------------------------------------
following is a solution to the problem


Sunday, June 3, 2012

yogi_Compare Text In Cell Of Column A With That Of Column B And Delneate The Difference From That In Cell Of Column A

Yogi Anand, D.Eng, P.E.       Google Spreadsheet    Post  #577    Jun 04, 2012     www.energyefficientbuild.com.

user Mavgaral said:
Comparing words in two different cells
I'm looking to compare word changes between two different cells in order to keep track of what changes.
For example in A1 I have "You need to pick a color and size" and in b1 I have "You need to pick a size and colour". In c1 I want to have the word "size and colour" (beginning to end of the change) so that I know what has changed between the two cells. (not just where, but what)
If there are multiple changes, can it do something like this in C1? "size and colour, next change"
Thanks.
-----------------------------------------------------------------------------------------------

following is a solution to the problem