PC Review


Reply
Thread Tools Rate Thread

Displaying Values from 2 cells in another cell

 
 
=?Utf-8?B?RkJ4aWlp?=
Guest
Posts: n/a
 
      26th Feb 2007
Hi.

I have a calculation spreadsheet where the user inputs various values into
certain cells. These values are then processed through a few calculation
steps to (obviously) come up with the answer!

I want to be able to show the calculation steps with the entered values next
to the cell that performs the actual calculation. Can this be done?

E.g.

Cell A1 = Enter 1st Number; Cell A2 = 12345
Cell B1 = Enter 2nd Number; Cell B2 = 67890

Cell A30 = 12345 x 67890 =; Cell B30 = A2*B2

Is this possible? I have tried using code but cannot seem to get it to work
(I get a #NAME error in Cell A30)

Thanks, Steve.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWlrZQ==?=
Guest
Posts: n/a
 
      26th Feb 2007
Steve,

I assume that what you have in A1, B1 and C30 are text descriptions of what
is going on. The code belwo will perform the calculation.

Sub multiply()
Worksheets("Sheet1").Cells(30, 2).Value = _
Worksheets("Sheet1").Cells(1, 2).Value * _
Worksheets("Sheet1").Cells(1, 2).Value
End Sub

Mike

"FBxiii" wrote:

> Hi.
>
> I have a calculation spreadsheet where the user inputs various values into
> certain cells. These values are then processed through a few calculation
> steps to (obviously) come up with the answer!
>
> I want to be able to show the calculation steps with the entered values next
> to the cell that performs the actual calculation. Can this be done?
>
> E.g.
>
> Cell A1 = Enter 1st Number; Cell A2 = 12345
> Cell B1 = Enter 2nd Number; Cell B2 = 67890
>
> Cell A30 = 12345 x 67890 =; Cell B30 = A2*B2
>
> Is this possible? I have tried using code but cannot seem to get it to work
> (I get a #NAME error in Cell A30)
>
> Thanks, Steve.

 
Reply With Quote
 
=?Utf-8?B?TWlrZQ==?=
Guest
Posts: n/a
 
      26th Feb 2007
OOPS should be

Sub multiply()
Worksheets("Sheet6").Cells(30, 2).Value = _
Worksheets("Sheet6").Cells(1, 2).Value * _
Worksheets("Sheet6").Cells(2, 2).Value
End Sub

"Mike" wrote:

> Steve,
>
> I assume that what you have in A1, B1 and C30 are text descriptions of what
> is going on. The code belwo will perform the calculation.
>
> Sub multiply()
> Worksheets("Sheet1").Cells(30, 2).Value = _
> Worksheets("Sheet1").Cells(1, 2).Value * _
> Worksheets("Sheet1").Cells(1, 2).Value
> End Sub
>
> Mike
>
> "FBxiii" wrote:
>
> > Hi.
> >
> > I have a calculation spreadsheet where the user inputs various values into
> > certain cells. These values are then processed through a few calculation
> > steps to (obviously) come up with the answer!
> >
> > I want to be able to show the calculation steps with the entered values next
> > to the cell that performs the actual calculation. Can this be done?
> >
> > E.g.
> >
> > Cell A1 = Enter 1st Number; Cell A2 = 12345
> > Cell B1 = Enter 2nd Number; Cell B2 = 67890
> >
> > Cell A30 = 12345 x 67890 =; Cell B30 = A2*B2
> >
> > Is this possible? I have tried using code but cannot seem to get it to work
> > (I get a #NAME error in Cell A30)
> >
> > Thanks, Steve.

 
Reply With Quote
 
nottom04@gmail.com
Guest
Posts: n/a
 
      26th Feb 2007
Maybe, I don't understand what you are trying to accomplish, but would

A30 = A2 & " * " & B2 & " ="

do what you want?

-Thomas

 
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
DataGridView: Displaying empty cells for certain values Ashutosh Microsoft C# .NET 5 31st Oct 2008 10:27 AM
Displaying values rather than formula in cells =?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?= Microsoft Excel Programming 1 8th Sep 2006 06:58 PM
Displaying temporary values on formula cells. Is this possible?q DjFreeX Microsoft Excel Misc 0 29th Aug 2006 04:46 PM
Displaying Formulas and Values of the Same Cells estherf04 Microsoft Excel Programming 1 30th Aug 2004 10:31 PM
Cell values not displaying Alan Microsoft Excel Worksheet Functions 1 20th Jan 2004 02:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:53 PM.