Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Reading more than one set of data from a single cell

I am trying to set up a database in a single workbook with several
worksheets. I want to be able to see in a cell on the first sheet a number
that is the result of a formula using three other numbers on another sheet.
That's simple, but is there a way of then seeing those other numbers in a
drop down or in the same cell without having to go to their worksheet?

For instance, can I use a spinner to change an address in a cell to show
different sets of data?

I think the subject line says it more clearly.

Mike H


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.783 / Virus Database: 529 - Release Date: 25/10/2004


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 430
Default Reading more than one set of data from a single cell

Follow this example (and see if it helps you)..
Create a new Workbook (Sheet1, Sheet2, Sheet3)
Enter
On Sheet3 - Cell F3 50
G6 20
H9 25
G12 = (F3/G6)/H9 < <should yield 40
On Sheet1 - Cell D3 =Sheet3!G12 <<should yield 40

In a Standard Module enter (Via copy and paste):

Sub FindValues()
Dim MyMainCell As String
Dim ExpChar As Integer
Dim WSRef As String
Dim CellRef As String
Dim MySubCell As String
MyMainCell = ActiveSheet.Range("D3").Formula
ExpChar = InStr(1, MyMainCell, "!")
WSRef = Mid(MyMainCell, 2, ExpChar - 2)
CellRef = Right(MyMainCell, Len(MyMainCell) - ExpChar)
MySubCell = Worksheets(WSRef).Range(CellRef).Formula
Range("E3").Value = Worksheets(WSRef).Range("F3")
Range("F3").Value = Worksheets(WSRef).Range("G6")
Range("G3").Value = Worksheets(WSRef).Range("H9")
End Sub

With Sheet1 active Run FindValues
Cells E3,F3,and G3 should populate with the values you want to see..

HTH
It's a Sample Only.. <g


"Broadsider" wrote in message
...
I am trying to set up a database in a single workbook with several
worksheets. I want to be able to see in a cell on the first sheet a number
that is the result of a formula using three other numbers on another

sheet.
That's simple, but is there a way of then seeing those other numbers in a
drop down or in the same cell without having to go to their worksheet?

For instance, can I use a spinner to change an address in a cell to show
different sets of data?

I think the subject line says it more clearly.

Mike H


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.783 / Virus Database: 529 - Release Date: 25/10/2004




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Reading more than one set of data from a single cell

Right, thanks,

I shall try that first thing tomorrow

Mike H
"Jim May" wrote in message
news:XKOld.6287$Dk.5919@lakeread08...
Follow this example (and see if it helps you)..
Create a new Workbook (Sheet1, Sheet2, Sheet3)
Enter
On Sheet3 - Cell F3 50
G6 20
H9 25
G12 = (F3/G6)/H9 < <should yield

40
On Sheet1 - Cell D3 =Sheet3!G12 <<should yield 40

In a Standard Module enter (Via copy and paste):

Sub FindValues()
Dim MyMainCell As String
Dim ExpChar As Integer
Dim WSRef As String
Dim CellRef As String
Dim MySubCell As String
MyMainCell = ActiveSheet.Range("D3").Formula
ExpChar = InStr(1, MyMainCell, "!")
WSRef = Mid(MyMainCell, 2, ExpChar - 2)
CellRef = Right(MyMainCell, Len(MyMainCell) - ExpChar)
MySubCell = Worksheets(WSRef).Range(CellRef).Formula
Range("E3").Value = Worksheets(WSRef).Range("F3")
Range("F3").Value = Worksheets(WSRef).Range("G6")
Range("G3").Value = Worksheets(WSRef).Range("H9")
End Sub

With Sheet1 active Run FindValues
Cells E3,F3,and G3 should populate with the values you want to see..

HTH
It's a Sample Only.. <g


"Broadsider" wrote in message
...
I am trying to set up a database in a single workbook with several
worksheets. I want to be able to see in a cell on the first sheet a

number
that is the result of a formula using three other numbers on another

sheet.
That's simple, but is there a way of then seeing those other numbers in

a
drop down or in the same cell without having to go to their worksheet?

For instance, can I use a spinner to change an address in a cell to show
different sets of data?

I think the subject line says it more clearly.

Mike H


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.783 / Virus Database: 529 - Release Date: 25/10/2004






---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.783 / Virus Database: 529 - Release Date: 25/10/2004


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Email (LDAP) data download into a single Excel cell - data separat MSA Excel Worksheet Functions 1 March 4th 08 05:14 PM
Splitting data out of a single cell davids Excel Discussion (Misc queries) 1 March 22nd 06 12:31 AM
Reading Data from another workbook... depending on variable in a cell? Rob Moyle Excel Discussion (Misc queries) 4 March 13th 06 04:21 PM
How Do I Enter Data Into A Single Cell sinbad Excel Worksheet Functions 3 July 29th 05 11:27 PM
reading data from com port into 2 different cell locations. Neil K Excel Programming 0 September 30th 04 12:26 PM


All times are GMT +1. The time now is 11:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"