Home
Matrix to vector Excel formula
- Details
- Published Date
- Written by ananta acharya
Horizontal =OFFSET(Matrix,TRUNC((ROW()-ROW($A$12))/COLUMNS(Matrix)),MOD(ROW()-ROW($A$12),COLUMNS(Matrix)),1,1)
Vertical =OFFSET(Matrix,MOD(ROW()-ROW($A$12),ROWS(Matrix)),TRUNC((ROW()-ROW($A$12))/ROWS(Matrix)),1,1)
source: http://www.cpearson.com/excel/MatrixToVector.aspx
Alternate styling in word [With Macro]
- Details
- Published Date
- Written by ananta acharya
I would rather write a script to do alternate bold and not bold of paragraphs than do it manually.
So, here is the script
sub i_am_not_lazy()
Dim para As Paragraph
Dim i As Integer
i = 1
For Each para In Selection.Paragraphs
If i Mod 2 = 0 Then
para.Range.Font.Bold = True
Else
para.Range.Font.Bold = False
End If
i = i + 1
Next
end sub
here is the
Replace words in File (Python)
- Details
- Published Date
- Written by ananta acharya
#batch renamer for contig and genBank Submission
#written by ananta acharya, PBGG, UGA
#May 28, 2010
#This program reads a .csv or .txt file with names to be replaced in each line separated with comma, for example
#oldname, newname
#oldname2, newname2
#Then it replaces the oldnames in provided ace file with newnames
#to start, u should give path of the...
INDEX and MATCH in EXCEL
- Details
- Published Date
- Written by ananta acharya
So, I needed to replace a number and its related value. So easy, the formula is
=INDEX($I$2:$I$7,MATCH(B2,$H$2:$H$7,0))
...split a word with
- Details
- Published Date
- Written by ananta acharya
Have you ever needed to split a word with certain character, yes I do, Mostly with _ or -
here you go, an excel macroFunction split1(text) split1 = Split(text, "_")(0) End Function Function split2(text) split1 = Split(text, "_")(1) End Function...

