LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 50
Default Custom Function to Retrieve Spread Sheet Data

Custom Function to Retrieve Spread Sheet Data

I am pretty sure that I have done the following successfully many years
ago using my Excel97, but I can’t recall how.

My workbook has two spreadsheets. The first [TaxOnSell] computes CASHOUT
from PRICE and DOWNPAYMENT.

In the second, I want to build a table showing the amount of CASHOUT as
a function of various values for PRICE and DOWNPAYMENT.

My though was to insert a custom function in the various cells of the
second spreadsheet. The custom function would be of the form:

Function CASHOUT(DOWN, PRICE)
Worksheets("TaxOnSell").Range("E6").Value = PRICE
Worksheets("TaxOnSell").Range("B43").Value = DOWN
CASHOUT = Worksheets("TaxOnSell").Range("E58").Value
End Function

The function returns “#VALUE” , an indication I’m doing something wrong.

Can I use a custom function in the above described manner, and if so,
how do I get it to enter and retrieve the data?
 
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
Need Help to Select certain Data from my spread sheet. Gmata Excel Worksheet Functions 3 September 15th 08 05:00 PM
how do i enter a bull call spread into the options spread sheet ? alvin smith Excel Worksheet Functions 0 November 27th 06 01:23 AM
Retrieve Data from one sheet to another karstens Excel Worksheet Functions 0 July 11th 06 08:49 PM
How do I link data from a cell on one spread sheet to another? Richard Deldonna Excel Worksheet Functions 4 March 18th 06 03:28 PM
How use =now function and how to retrieve data from another shee? dstock Excel Programming 15 June 15th 05 05:08 PM


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

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

About Us

"It's about Microsoft Excel"