PC Review


Reply
Thread Tools Rate Thread

Custom Function to Retrieve Spread Sheet Data

 
 
windsurferLA
Guest
Posts: n/a
 
      4th Nov 2006
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?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?ZXhjZWxlbnQ=?=
Guest
Posts: n/a
 
      4th Nov 2006
u cant change anything in another cells
a function can only return a value


"windsurferLA" skrev:

> 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?
>

 
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
Need Help to Select certain Data from my spread sheet. Gmata Microsoft Excel Worksheet Functions 3 15th Sep 2008 05:00 PM
how can I Delete data in a spread sheet and keep formulas Excel Dummy Microsoft Excel Misc 1 24th Jul 2008 04:10 AM
Custom Function to Retrieve Spread Sheet Data windsurferLA Microsoft Excel Programming 2 4th Nov 2006 06:44 PM
extract data from spread sheet Gonzosez Microsoft VB .NET 1 28th Feb 2006 04:16 PM
exporting data to a secondary spread sheet =?Utf-8?B?VG9yaQ==?= Microsoft Excel Worksheet Functions 0 19th Jan 2005 03:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:22 PM.