Welcome, Guest. Please login or register.
July 20, 2025, 07:04:49 AM

Login with username, password and session length

Search:     Advanced search
we're back, baby
*
Home Help Search Login Register
f13.net  |  f13.net General Forums  |  General Discussion  |  Topic: Excel help 0 Members and 1 Guest are viewing this topic.
Pages: [1] Go Down Print
Author Topic: Excel help  (Read 3207 times)
Hawkbit
Terracotta Army
Posts: 5531

Like a Klansman in the ghetto.


on: December 02, 2008, 03:32:35 PM

I should know this... but I haven't used Excel in 10 years for anything even remotely important.  Help, please?

I need to create a simple running budget spreadsheet.  In B1 I'll have a starting balance of $1000.00.  In A2 I'll have a deduction, say $100.00, so that in B2 I want it to report $900.00.  And so on,. using only those two columns. 

I can create a formula to calculate that from each individual cell, but there should be a way to have the formula repeat itself so that whatever is added into column A is deducted from from the previous balance in B.  I keep thinking this is handled by the 'range' function, but I can't get it to work.  It's only offering me an 'add' function, and it's not handling negative numbers. 

Halp?  Please. 
Yoru
Moderator
Posts: 4615

the y master, king of bourbon


WWW
Reply #1 on: December 02, 2008, 03:37:11 PM

If I recall right, you can highlight the cell with the formula in it, click the little black box in the lower-right of the cell and drag it downwards to populate the column. Excel will modify the formula by incrementing the row ordinal without changing the column ordinal. That is, =B1-A2 will turn into =B2-A3 and so on.\

You can drag across columns to in order to get the appropriate columnar effect.
Paelos
Contributor
Posts: 27075

Error 404: Title not found.


Reply #2 on: December 02, 2008, 03:43:34 PM

If you are trying to copy formulas, Yoru is right. You can simply drag the lower right corner of the box to whichever direction and it will auto-populate the rest of the cells with an updated formula.

If you wanted to hold certain parts of a formula, you can add $ symbols in front of whatever you want to stay the same. $F1 would keep F the same and update the number. $F$1 would keep F1 the same no matter what you copied.

CPA, CFO, Sports Fan, Game when I have the time
Hawkbit
Terracotta Army
Posts: 5531

Like a Klansman in the ghetto.


Reply #3 on: December 02, 2008, 04:00:18 PM

That is almost exactly what I was looking for, thanks a ton.  It's been too long since I've used Excel.   Ohhhhh, I see.

The only issue with dragging the formula down is that it repeats the current total in the B column for as long as I have dragged it.  Not a huge deal though, you both put me on the right path. 
Chenghiz
Terracotta Army
Posts: 868


Reply #4 on: December 02, 2008, 06:08:07 PM

In that case you could have something like "=b1-a2" in cell b2
Lantyssa
Terracotta Army
Posts: 20848


Reply #5 on: December 03, 2008, 11:36:05 PM

I have a related question to populating formulas.

In the A column, starting with 2, I want to enter a value.  So A2, A3, A4, ...  Across row 1, I want to duplicate these, so B1 = A2, C1 = A3, D1 = A4, ...  Is there an easy way to do this?

The purpose is to set up a fusion table for MegaTen, if that helps.  Basically Row 1 will equal Column 1.  If I can get that working easily, then the others will be easy enough to set up.

Hahahaha!  I'm really good at this!
apocrypha
Terracotta Army
Posts: 6711

Planes? Shit, I'm terrified to get in my car now!


Reply #6 on: December 04, 2008, 12:44:35 AM

Copy column 1, select cell B1 then paste special -> Transpose.  If I've understood what you want correctly.

"Bourgeois society stands at the crossroads, either transition to socialism or regression into barbarism" - Rosa Luxemburg, 1915.
Lantyssa
Terracotta Army
Posts: 20848


Reply #7 on: December 04, 2008, 10:01:54 AM

You do understand.  It's not cooperating for copying an entire column into a row though, and no formulas are being generated.

Maybe I should just make a small database and use php to collect the data anyways.  The matrix manipulation would probably be easier and it'd let me do some nifty stuff.

Hahahaha!  I'm really good at this!
Salamok
Terracotta Army
Posts: 2803


Reply #8 on: December 04, 2008, 10:14:38 AM

transpose only works with a range of cells, I suppose it would work if you could have 65536 columns.  It will also work fine with formulas but remember it copies them as relative unless they contain absolute references, so results may not be as you were expecting. 
Tarami
Terracotta Army
Posts: 1980


Reply #9 on: December 04, 2008, 10:32:29 AM

Not sure what you're trying to achieve... do you want the X-axis to map directly to the Y-axis, so if you change a value in A4 (third on Y), the corresponding value in D1 (third on X) will also change? Two linked axises, so to speak? That can be done by;

=INDEX($A:$A;COLUMN(B1);1)

in B1, then giving A2 value 1 and ascending downwards. Drag-scale B1 to the right to copy the forumula.

- I'm giving you this one for free.
- Nothing's free in the waterworld.
Yegolev
Moderator
Posts: 24440

2/10 WOULD NOT INGEST


WWW
Reply #10 on: December 04, 2008, 10:36:30 AM

You do understand.  It's not cooperating for copying an entire column into a row though, and no formulas are being generated.

Maybe I should just make a small database and use php to collect the data anyways.  The matrix manipulation would probably be easier and it'd let me do some nifty stuff.

Did you try Paste Special instead of regular Paste?  I'm not sure if you are pasting formulae or values.

Why am I homeless?  Why do all you motherfuckers need homes is the real question.
They called it The Prayer, its answer was law
Mommy come back 'cause the water's all gone
Lantyssa
Terracotta Army
Posts: 20848


Reply #11 on: December 04, 2008, 11:28:03 AM

Not sure what you're trying to achieve... do you want the X-axis to map directly to the Y-axis, so if you change a value in A4 (third on Y), the corresponding value in D1 (third on X) will also change? Two linked axises, so to speak? That can be done by;

=INDEX($A:$A;COLUMN(B1);1)

in B1, then giving A2 value 1 and ascending downwards. Drag-scale B1 to the right to copy the forumula.
This worked, though I had to use commas instead of semi-colons.  Thanks.

Did you try Paste Special instead of regular Paste?  I'm not sure if you are pasting formulae or values.
Yes, I was using Paste Special.  I had a workaround where I could drag down a column, paste a transpose, then delete the column, but it was clunky and I couldn't expand the formula further.

I wanted to paste a formula, but didn't know the excel terminalogy to do more than $A1, drag that, which just ended up duplicating $A1.

Hahahaha!  I'm really good at this!
Draegan
Terracotta Army
Posts: 10043


Reply #12 on: October 06, 2009, 12:13:59 PM

Necro thread for my own help please.

I need to do a search in a bunch of cells for a certain combination of a few strings and return true if any of them are in there.  I can't seem to get it to work and this seems like it should be simple.

So far I have

=IF(OR(SEARCH("050-*-*",C2,1),SEARCH("100-*-*",C2,1),SEARCH("150-*-*",C2,1)),"True","False")

It seems to work with on search condition but returns an error with the OR statement.  Halp pls.

I've even tried seated IF statements,

=IF( SEARCH("050-*-*",C2,1), "True", IF(SEARCH("100-*-*",C2,1),"True","False"))

Always returns the first condition correctly, but not the second.
« Last Edit: October 06, 2009, 12:24:12 PM by Draegan »
MisterNoisy
Terracotta Army
Posts: 1892


Reply #13 on: October 06, 2009, 12:27:40 PM

Necro thread for my own help please.

I need to do a search in a bunch of cells for a certain combination of a few strings and return true if any of them are in there.  I can't seem to get it to work and this seems like it should be simple.

So far I have

=IF(OR(SEARCH("050-*-*",C2,1),SEARCH("100-*-*",C2,1),SEARCH("150-*-*",C2,1)),"True","False")

It seems to work with on search condition but returns an error with the OR statement.  Halp pls.

I've even tried seated IF statements,

=IF( SEARCH("050-*-*",C2,1), "True", IF(SEARCH("100-*-*",C2,1),"True","False"))

Always returns the first condition correctly, but not the second.

Try this:

=IF(COUNTIF(C2, "=*mystring1*") + COUNTIF(C2, "=*mystring2*") > 0, "TRUE", "FALSE")

For your specific example:

=IF(COUNTIF(C2, "=*100-*-*") + COUNTIF(C2, "=*050-*-*") > 0, "TRUE", "FALSE")
« Last Edit: October 06, 2009, 12:33:59 PM by MisterNoisy »

XBL GT:  Mister Noisy
PSN:  MisterNoisy
Steam UID:  MisterNoisy
Draegan
Terracotta Army
Posts: 10043


Reply #14 on: October 06, 2009, 12:44:17 PM

It's returning false for each for all instances.

I tried something with ISERROR and OR and it wasn't working either.
MisterNoisy
Terracotta Army
Posts: 1892


Reply #15 on: October 06, 2009, 12:49:04 PM

It's returning false for each for all instances.

I tried something with ISERROR and OR and it wasn't working either.


Odd.  It returns true on the sheet I'm working on for

gkljgklfdj100-fdsjfdsj-lf;kjdfksd (*100-*-*)
kfjdsklfj050-fdsfds-fdsfsd  (*050-*-*)

and similar entries.  What are the strings you're looking for?
« Last Edit: October 06, 2009, 12:59:10 PM by MisterNoisy »

XBL GT:  Mister Noisy
PSN:  MisterNoisy
Steam UID:  MisterNoisy
Draegan
Terracotta Army
Posts: 10043


Reply #16 on: October 06, 2009, 12:51:34 PM

Actually it works, my fault for not putting another Wildcard "*100-*-*" infront of the string.  I had assumed it would search the whole strong for such an instance.

I fail at copying.
Thanks for the help.
MisterNoisy
Terracotta Army
Posts: 1892


Reply #17 on: October 06, 2009, 12:53:23 PM

Glad to help!  :)

XBL GT:  Mister Noisy
PSN:  MisterNoisy
Steam UID:  MisterNoisy
Pages: [1] Go Up Print 
f13.net  |  f13.net General Forums  |  General Discussion  |  Topic: Excel help  
Jump to:  

Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC