Ahuva says
14 years ago
anyone out there good at writing Excel macros and have time to help me set one up? thanks!
latest #31
± Bin
14 years ago
I used to teach lunch and learns on it - basic idea is to use "record macro" to record your steps, then go into the code editor
± Bin
14 years ago
and add in anything that is not "by rote" repetition.
Ahuva says
14 years ago
ah. no. maybe i stated my need incorrectly.
立即下載
± Bin
14 years ago
what do you need the macro to do?
Ahuva says
14 years ago
i suspect the function i need exists. i simply dont know what it might be called so that i could find it and use it
Honour
14 years ago
(LOL) she's delegating Binary ;-)
Ahuva says
14 years ago
i have a list. i want to put X's in the column next to the list. then i want to reduce the list to the x'd rows
Ahuva says
14 years ago
i think that exists.
± Bin
14 years ago
Hmmms - the Xs are in a column on a spreadsheet that is serving as an Excel database?
Ahuva says
14 years ago
not a database. no. it's a report. the rows/report are populated by another tool. but i come along, and want to check the rows in which
Ahuva says
14 years ago
i'm interested
Ahuva says
14 years ago
and then on another sheet (if that's easier) i reduce the report to only the marked rows.
Ahuva says
14 years ago
so - if i have a report of 10 rows plus the column header, and i mark 4 of them
± Bin
14 years ago
hmm - I turned this up... something like this? www.freevbcode.com/ShowC...
Ahuva says
14 years ago
i can go and generate a function(?) and reduce to 4 rows
± Bin
14 years ago
Think it would be a loop to eliminate rows that don't have X's - or copy the ones that do... but I'll dig around :-)
Ahuva says
14 years ago
that might do it. am not sure if " take all the unique values" means that it takes non-nulls, or each check must be unique
Ahuva says
14 years ago
yes - your last comment about eliminating not x'd or copying x'd is exactly what i mean
± Bin
14 years ago
That bit of code is just a 'sorta like it" example, methinks.
Ahuva says
14 years ago
/me nods. as i look at it, yes, i think that is sorta like it. *grin*
± Bin
14 years ago
nods ok :-) I'm in a meeting but might be able to poke Excel into action and try some mods later, if you don't beat me to it :-)
Ahuva says
14 years ago
ah - LOOKUP("X",A1:A500,B1:B500)
Ahuva says
14 years ago
*grin*
Ahuva says
14 years ago
that might be it, no
Ahuva says
14 years ago
?
± Bin
14 years ago
LOOKUP functions are used to index into data in a database usually... goes to see...
± Bin
14 years ago
yes, that function is used to find a matching value in one dimension of an array, and return the matching value in the next dimension
± Bin
14 years ago
not quite what you're lookin for
Ahuva says
14 years ago
ah
Ahuva says
14 years ago
okay. i will keep looking too. ty! i'll stop interrupting your meeting now. :-)
± Bin
14 years ago
lol - someone else is talking and I've already seen their charts :-D
back to top