nonethefewer: (Default)
AH-HA.

Ctrl-F5 in Excel: De-maximises the workbooks.
Ctrl-F10 in Excel: Maximises the workbooks.

HA.

Originally posted on Dreamwidth.
nonethefewer: (Default)
Source: http://www.tiglo.co.uk/undocumented-excel-convert-month-name-to-number/

If you have a month name in cell A2, put this in cell B2 to get the month number:

=MONTH(1&A2)

Originally posted on Dreamwidth.
nonethefewer: (Default)
I have this ass-long formula that checks invoice things.  I decided to put it into a function, and just call that function.

The cell:

=determineState()

The function (or at least some of it):

Function determineState()

rowNum = ActiveCell.Row

dateSent = Cells(rowNum, 8)
datePaid = Cells(rowNum, 10)

retVal = "I: "

' Has it been paid?
If datePaid <> "" Then
retVal = retVal & "paid"
Else
retVal = retVal & "sent"
End If

determineState = retVal

End Function


And yet, the result does not refresh well.  If at all.

What the hell?
nonethefewer: (Default)
There may be a better way to do this, but whatever.

In Excel, I have column A, which shows all amounts, and column B, which shows the date the transaction was cleared.  (Mmm, banking.)  I wanted to show a total of what had not yet cleared.

So.

=Sum(A:A) - SumIf(B:B, "<>", A:A)
nonethefewer: (Default)
To return the last item in an Excel column:

=INDEX(G:G, COUNTA(G:G) + 3)

INDEX(Array, Row Number)

COUNTA(Value(s))

CountA gets the number of non-blank cells in a range.

Index: the array is all values in column G, and the row number is the count of items in column G.

The +3 is there because cells G1-G3 are empty, in my worksheet.

Source.

* This also works in Google Spreadsheets.
* This mostly works in Zoho Sheet.  First, semicolons, not commas.  Second, it doesn't seem to support G:G; you need to specify G1:G40 (or whatever).
nonethefewer: (Default)
- Vista 64-bit.
- Excel 2007.
- MyODBC 3.51.  (We're using MySQL 3.23.)

Steps:

- Go to Data Sources (ODBC) and add a user data source to connect to the db.
- Test the connection - it works.
- In Excel, go to the Data section, and click From Other Sources.
- Choose From Data Connection Wizard.
- ODBS DSN, next.

Suck:

No matter what I select, clicking Next gives me nothing.  No delay, no display, no closing windows, no hanging, nothing.  This isn't just MySQL (though I listed it to be thorough) - no option does anything.

What &$(# gives?
nonethefewer: (Default)
Does anybody have Excel and a few minutes?  OpenOffice and me do not get on.
nonethefewer: (Default)
The formula to return the text day of the week for a given date in Excel:

=CHOOSE(WEEKDAY(A1, 1), "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")

(Also totally works in Google Spreadsheets.)

The WEEKDAY(date, type) function takes a date and returns the number of the day of the week.  So WEEKDAY("2009-06-10", 1) would return 4 - Wednesday is the fourth day of the week.

type in that formula:

* 1 or no value == 1 (Sunday) through 7 (Saturday)
* 2 == 1 (Monday) through 7 (Sunday)
* 3 == 0 (Monday) through 6 (Sunday)

(So US-centric.)

CHOOSE(index#, [item1, item2, ...]) takes two things - an index number, and a set of values to choose from.  (No brackets, though - that's just for ease of descriptifying.)

*makes "and so therefore" gesture*
nonethefewer: (geeky girl)
Today's thing about Excel that all this time using it, I didn't know:

Say you have a column of names:

Smith, Bob
Jones, Tim

You want to split those out to two columns.  Simple-peasy.  Go to Data > Text To Columns (this is the same in 2007 - it's found in the Data Tools chunk).  That takes you through a wizard that allows you to split the data based on criteria (delimited or fixed width, commas or semicolons, &c).  If you've ever imported a .csv into Excel, it's the same wizard.

ALL THIS TIME.  And I never knew until YESTERDAY.
nonethefewer: (Default)
In Excel, in VBA, I have one function and one subroutine.  They should never talk to each other.  The function calculates a date thing in cell A1, and the only time the subroutine touches A1 is to get the current value.

So why is it when I ever modify any contents anywhere, nowhere near A1, the function runs?  The first thing I do is empty some cells out, and the function runs.  Qua?
nonethefewer: (Default)
Why does adding dates suck so fucking much what the hell?
nonethefewer: (knitting with sticks)
Hooray for formulas.  My Google spreadsheet now has two pages: one for figuring out repeating designs, and one for resizing Excel grids both by pixels and by Excel's arbitrary row height/column width numbers.

Technically, height and width assume a font of Arial 10 - width is how many numbers could fit in the column, and height is the height of the font in points, where one point is 1/72".

I don't know why I know this.  Anyways, here you go.

What's next?
nonethefewer: (Default)
And now I have an Excel spreadsheet that takes the WebPBN.com grid and plants it into Excel.

(I wanted better zooming.)

Mwahaha.
nonethefewer: (Default)
Random bits of life that are not about me being depressed:

* We watched Chronicles of Narnia last night.  B accurately guessed that I would want to put Mr. Tumnus in my pocket and pat him.  *pat pat*

* I am almost finished with my lovely Excel spreadsheetHere's what it does. )

That cut, summarised: I'm a big huge honkin' goddamn dork, and there's no denying it.

* I have a cute kitty.
nonethefewer: (Default)
For yall afflicted with Excel 2007:

1) You can minimise the Ribbon - right-click, minimise.

2) To manage a named range, hit [Alt][I][D].
Page generated Aug. 14th, 2025 12:17 am
Powered by Dreamwidth Studios