Technology Get the latest on technology, electronics and software…

Excel Question

Thread Tools
 
Old Jan 30, 2008 | 09:34 AM
  #1  
sho_nuff1997's Avatar
Thread Starter
I disagree with unanimity
iTrader: (2)
 
Joined: Jul 2007
Posts: 14,035
Likes: 29
From: WI
Question Excel Question




starting where it is highlighted, i would like to create a formula that will give me the answer to column f (miles per tank) / column b (gallons) but it needs to change every row. is this possible?

does it make sense what i am asking?

thanks in advance!!
Reply
Old Jan 30, 2008 | 09:44 AM
  #2  
svtmike's Avatar
Team Owner
20 Year Member
Liked
Loved
Community Favorite
 
Joined: Oct 2003
Posts: 37,707
Likes: 3,905
From: Chicago
in g40, enter "=f40/b40"

then copy and paste g40 to all of the cells you want to have the calculation. excel will change the formulas so that, for example, g41 will have "=f41/b41".
Reply
Old Jan 30, 2008 | 09:45 AM
  #3  
leftride's Avatar
i want to ride my bicycle
iTrader: (1)
 
Joined: Sep 2003
Posts: 3,598
Likes: 21
From: denver, co
so are you looking for:
F40/B32
F41/B32
F42/B32
F40/B33
F41/B33
F42/B33
etc...

?
Reply
Old Jan 30, 2008 | 09:45 AM
  #4  
sho_nuff1997's Avatar
Thread Starter
I disagree with unanimity
iTrader: (2)
 
Joined: Jul 2007
Posts: 14,035
Likes: 29
From: WI
i forgot to add that it cannot be the whole column, because i have different data above that
Reply
Old Jan 30, 2008 | 09:47 AM
  #5  
sho_nuff1997's Avatar
Thread Starter
I disagree with unanimity
iTrader: (2)
 
Joined: Jul 2007
Posts: 14,035
Likes: 29
From: WI
thanks!
that was easy enough.
i think i had too much coffee today
Reply
Old Jan 30, 2008 | 09:48 AM
  #6  
Shalooby's Avatar
Secret Agent
 
Joined: Aug 2006
Posts: 4,298
Likes: 31
From: N Va
It won't be. Only the cells that contain the formula will display the results.
Reply
Old Jan 30, 2008 | 09:48 AM
  #7  
hornyleprechaun's Avatar
Bent = #1
 
Joined: Dec 2001
Posts: 13,473
Likes: 25
From: Marietta, GA
So you only have 3 Miles per tank cells? If so you can absolute reference by pushing F4 then copying and pasting.

=$F$40/B32
=$F$40/B33
=$F$40/B34
etc..


Edit: Damnit.. at least you find out answer
Reply
Old Jan 30, 2008 | 09:54 AM
  #8  
sho_nuff1997's Avatar
Thread Starter
I disagree with unanimity
iTrader: (2)
 
Joined: Jul 2007
Posts: 14,035
Likes: 29
From: WI
Originally Posted by hornyleprechaun
So you only have 3 Miles per tank cells? If so you can absolute reference by pushing F4 then copying and pasting.

=$F$40/B32
=$F$40/B33
=$F$40/B34
etc..


Edit: Damnit.. at least you find out answer
ya i just decided to start it on my own. the car can do it, but i wanted to keep a record. i started the sheet to see how much i spent on gas and to figure my fuel consumption.
Reply
Old Jan 30, 2008 | 10:08 AM
  #9  
cibs's Avatar
Drifting
 
Joined: May 2006
Posts: 2,355
Likes: 1
From: Mississauga, Canada
even easier than copy pasting is clicking on the cell you want to 'replicate' and then clicking on the little box that appears in the bottom right hand corner when your cursor turns to a + symbol, and then just drag as far as you want...

that works for formulas, dates, times, etc...
Reply
Old Jan 30, 2008 | 10:22 AM
  #10  
sho_nuff1997's Avatar
Thread Starter
I disagree with unanimity
iTrader: (2)
 
Joined: Jul 2007
Posts: 14,035
Likes: 29
From: WI
how do i get rid of the #DIV/0 error?
Reply
Old Jan 30, 2008 | 10:43 AM
  #11  
03silvertypeS's Avatar
Drifting
 
Joined: Apr 2005
Posts: 2,612
Likes: 7
From: Pittsburgh, PA
Originally Posted by sho_nuff1997
how do i get rid of the #DIV/0 error?
Just delete it or fill in the cells referenced in the cell containing "#DIV/0" error. The reason you're getting that error is the one or both of the cells contained in the formula do not contain the data for the formula to work.

For example, if the cell contains the formula "=A1/B1", you will get an error if cell A1 or cell B1 is blank.
Reply
Old Jan 30, 2008 | 04:06 PM
  #12  
The Dougler's Avatar
Unofficial Goat
iTrader: (1)
 
Joined: Jul 2006
Posts: 15,744
Likes: 112
From: Toronto
I have another question for you pros. I've got a list of movie titles in a column, and want to make it so that if you click on the title it will open firefox and query that title on imdb. is there anyway to write a formula for this? I don't want to have to go through all the titles and have to manually hyperlink them.
Reply
Old Jan 30, 2008 | 04:16 PM
  #13  
Jonesi's Avatar
Senior Moderator
 
Joined: Jul 2003
Posts: 19,827
Likes: 1
From: Pittsburgh, PA
Originally Posted by The Dougler
I have another question for you pros. I've got a list of movie titles in a column, and want to make it so that if you click on the title it will open firefox and query that title on imdb. is there anyway to write a formula for this? I don't want to have to go through all the titles and have to manually hyperlink them.


Insert --> Hyperlink


done.







edit - Here's a link for reference.. And This Right Here Is a Hyperlink.. Text with a link embeded
Reply
Old Jan 30, 2008 | 04:21 PM
  #14  
Q1911's Avatar
Suzuka Master
 
Joined: Sep 2007
Posts: 5,993
Likes: 8
Originally Posted by The Dougler
I have another question for you pros. I've got a list of movie titles in a column, and want to make it so that if you click on the title it will open firefox and query that title on imdb. is there anyway to write a formula for this? I don't want to have to go through all the titles and have to manually hyperlink them.

you should use a different program. its called "All My Movies" it inputs all the data right from IMDB and such forth. let me know if you want it
Reply
Old Jan 30, 2008 | 04:39 PM
  #15  
The Dougler's Avatar
Unofficial Goat
iTrader: (1)
 
Joined: Jul 2006
Posts: 15,744
Likes: 112
From: Toronto
Originally Posted by quinto1025
you should use a different program. its called "All My Movies" it inputs all the data right from IMDB and such forth. let me know if you want it
Does it run on MAC by any chance?
Reply
Old Jan 30, 2008 | 04:43 PM
  #16  
Q1911's Avatar
Suzuka Master
 
Joined: Sep 2007
Posts: 5,993
Likes: 8
Originally Posted by The Dougler
Does it run on MAC by any chance?

sorry
Reply
Old Jan 30, 2008 | 04:51 PM
  #17  
The Dougler's Avatar
Unofficial Goat
iTrader: (1)
 
Joined: Jul 2006
Posts: 15,744
Likes: 112
From: Toronto
found me one, Thanks!
Reply
Old Jan 30, 2008 | 11:22 PM
  #18  
Bearcat94's Avatar
AZ Community Team
 
Joined: May 2007
Posts: 32,488
Likes: 7,771
From: N35°03'16.75", W 080°51'0.9"
Originally Posted by sho_nuff1997
how do i get rid of the #DIV/0 error?
For row 40, if I understand what you're doing:

type the following in g40

=if(b40="","",f40/b40)

That says "If b40 is blank, then leave g40 blank, otherwise f40 divided by b40"

If you need to retain static references use the $ where needed.

Once done, copy the formula down as far as you want. When you fill in the "B" column, the formula will give a result.
Reply
Old Jan 31, 2008 | 07:49 AM
  #19  
curls's Avatar
Someone stole "My Garage"
 
Joined: May 2005
Posts: 3,537
Likes: 17
From: Ottawa, Ontario
Originally Posted by Bearcat94
For row 40, if I understand what you're doing:

type the following in g40

=if(b40="","",f40/b40)

That says "If b40 is blank, then leave g40 blank, otherwise f40 divided by b40"

If you need to retain static references use the $ where needed.

Once done, copy the formula down as far as you want. When you fill in the "B" column, the formula will give a result.
Definitely a cleaner way to do it, good job!
Reply
Old Jan 31, 2008 | 07:56 AM
  #20  
sho_nuff1997's Avatar
Thread Starter
I disagree with unanimity
iTrader: (2)
 
Joined: Jul 2007
Posts: 14,035
Likes: 29
From: WI
Originally Posted by Bearcat94
For row 40, if I understand what you're doing:

type the following in g40

=if(b40="","",f40/b40)

That says "If b40 is blank, then leave g40 blank, otherwise f40 divided by b40"

If you need to retain static references use the $ where needed.

Once done, copy the formula down as far as you want. When you fill in the "B" column, the formula will give a result.
excellent!

Thanks all!
Reply
Old Jan 31, 2008 | 08:24 AM
  #21  
svtmike's Avatar
Team Owner
20 Year Member
Liked
Loved
Community Favorite
 
Joined: Oct 2003
Posts: 37,707
Likes: 3,905
From: Chicago
Originally Posted by Bearcat94
For row 40, if I understand what you're doing:

type the following in g40

=if(b40="","",f40/b40)

That says "If b40 is blank, then leave g40 blank, otherwise f40 divided by b40"

If you need to retain static references use the $ where needed.

Once done, copy the formula down as far as you want. When you fill in the "B" column, the formula will give a result.
I find =if(iserr(f40/b40),"",f40/b40) to be more robust.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
navtool.com
3G MDX (2014-2020)
32
Jan 20, 2016 11:43 AM
navtool.com
5G TLX Audio, Bluetooth, Electronics & Navigation
31
Nov 16, 2015 08:30 PM
navtool.com
1G RDX Audio, Bluetooth, Electronics & Navigation
1
Sep 25, 2015 05:15 PM
rboller
3G TL Audio, Bluetooth, Electronics & Navigation
0
Sep 23, 2015 02:49 PM




All times are GMT -5. The time now is 04:24 PM.