PC Review


Reply
Thread Tools Rate Thread

Dragging cell's formula changes BOTH referenced cells - don't want that!

 
 
markinva
Guest
Posts: n/a
 
      18th Aug 2005

Sorry for the long post!

Please see the attached Word doc - it has a table that I copied from a
spreadsheet I'm working on. I included each cell's formula to help
explain what I'm trying to do.

As you can tell, I'm creating a kind of fuel calculator/comparison
chart. I want to be able to compare the amount spent over a year for a
couple of vehicles with a certain mpg rating. There's more to the
chart, but this information is sufficient for my question/problem.

I'm including fuel prices from $1.50 to $4.00 (man, can you believe
prices these days?! ). That's two hundred and fifty rows of fuel
prices - per car. Obviously I'm trying to find the quickest way to get
the formulas in the corresponding columns.

What I tried to do was drag, for instance (in the attached table) cell
B10 down. To make the chart work, the first cell in the formula must
change to reference the fuel price in the next row, but the reference
to the car's gallons used must stay the same. But what actually happens
when I drag the cell is *both* parts of the formula change to reference
the next cell down from each cell refernced in the formula. So dragging
from B10 down, it changes to "=(A11*C4) when I want it to read
"=(A11*C3)".

Is everyone thoroughly confused? Good! Now for the question:

Is there anyway to automate or otherwise speed up the formula entry
instead of manually entering all 250 - sorry *500* formulas (for the
two cars' colums)?!

Edit: I have never ventured in to using any special commands (vlookup,
pmt, even SUM) but I'll learn...

Thanks for anyone's help!

Mark


+-------------------------------------------------------------------+
|Filename: Fuel calculator example.doc |
|Download: http://www.excelforum.com/attachment.php?postid=3701 |
+-------------------------------------------------------------------+

--
markinva
------------------------------------------------------------------------
markinva's Profile: http://www.excelforum.com/member.php...o&userid=26408
View this thread: http://www.excelforum.com/showthread...hreadid=396824

 
Reply With Quote
 
 
 
 
Cougar548
Guest
Posts: n/a
 
      18th Aug 2005

If I read this right, then all you need to do is make the formul
absolute. You can do this by simply adding dollar signs to the cell
This is what your formula should look like in B8:

=(A8*$C$3)

Now as for a quick way to automate this and apply it to the entire lis
(again, if I read this right), if you double click on the bottom righ
of the active cell with the formula you want to copy, you will see tha
it will automatically apply that formula all the way down your shee
until it runs out of data. Pretty cool, huh?!

Hope that helps!
:

--
Cougar54
-----------------------------------------------------------------------
Cougar548's Profile: http://www.excelforum.com/member.php...fo&userid=2256
View this thread: http://www.excelforum.com/showthread.php?threadid=39682

 
Reply With Quote
 
markinva
Guest
Posts: n/a
 
      18th Aug 2005

Beautiful!! Worked like a charm!!

Thanks.

Mark :

--
markinv
-----------------------------------------------------------------------
markinva's Profile: http://www.excelforum.com/member.php...fo&userid=2640
View this thread: http://www.excelforum.com/showthread.php?threadid=39682

 
Reply With Quote
 
RocketDude
Guest
Posts: n/a
 
      18th Aug 2005
Mark,

The attachment didn't show up, so this may or may not solve your problem but
here goes:

If in your example, cell C3 should always point to the same cell, then make
it an absolute reference -- $C$3. Then you can drag the formula and it won't
change.

Hope this helps,

--
Matthew

"markinva" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
>
> Sorry for the long post!
>
> Please see the attached Word doc - it has a table that I copied from a
> spreadsheet I'm working on. I included each cell's formula to help
> explain what I'm trying to do.
>
> As you can tell, I'm creating a kind of fuel calculator/comparison
> chart. I want to be able to compare the amount spent over a year for a
> couple of vehicles with a certain mpg rating. There's more to the
> chart, but this information is sufficient for my question/problem.
>
> I'm including fuel prices from $1.50 to $4.00 (man, can you believe
> prices these days?! ). That's two hundred and fifty rows of fuel
> prices - per car. Obviously I'm trying to find the quickest way to get
> the formulas in the corresponding columns.
>
> What I tried to do was drag, for instance (in the attached table) cell
> B10 down. To make the chart work, the first cell in the formula must
> change to reference the fuel price in the next row, but the reference
> to the car's gallons used must stay the same. But what actually happens
> when I drag the cell is *both* parts of the formula change to reference
> the next cell down from each cell refernced in the formula. So dragging
> from B10 down, it changes to "=(A11*C4) when I want it to read
> "=(A11*C3)".
>
> Is everyone thoroughly confused? Good! Now for the question:
>
> Is there anyway to automate or otherwise speed up the formula entry
> instead of manually entering all 250 - sorry *500* formulas (for the
> two cars' colums)?!
>
> Edit: I have never ventured in to using any special commands (vlookup,
> pmt, even SUM) but I'll learn...
>
> Thanks for anyone's help!
>
> Mark
>
>
> +-------------------------------------------------------------------+
> |Filename: Fuel calculator example.doc |
> |Download: http://www.excelforum.com/attachment.php?postid=3701 |
> +-------------------------------------------------------------------+
>
> --
> markinva
> ------------------------------------------------------------------------
> markinva's Profile:
> http://www.excelforum.com/member.php...o&userid=26408
> View this thread: http://www.excelforum.com/showthread...hreadid=396824
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bold text of referenced cell show in formula cell zabcikranch Microsoft Excel Worksheet Functions 1 2nd Feb 2010 07:42 PM
One Formula Referenced In Many Cells alsaleh Microsoft Excel Worksheet Functions 6 13th Nov 2009 02:14 PM
Highlight the cells referenced in the active cell formula =?Utf-8?B?Q2hhcmxlcw==?= Microsoft Excel Programming 2 21st Jun 2007 04:30 AM
Click in cell w/ formula and get colors in referenced cells albean Microsoft Excel Misc 0 11th Nov 2005 07:04 PM
How to offset certain cells after dragging down a formula =?Utf-8?B?QnJhbQ==?= Microsoft Excel Programming 1 19th Oct 2005 03:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:06 PM.