Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Setup / July 2006

Tip: Looking for answers? Try searching our database.

How do you return current ROW number to definition in NAME function?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jim - 24 Jul 2006 01:05 GMT
I have a two worksheet excel program, and it is being designed as a
sort of commodities "inventory net worth" program.

First sheet (Daily Spot Prices) has columns  containing date,
commodity 1, commododity2, commodity3...... etc,   each price
representing price per pound in dollars.  These prices change daily, a
new row is used each day.   Each column item is given a name, let's
say Corn, Wheat, Soybeans, etc.  

Second sheet, has complete inventory of items, that is, item number,
number of pounds, original cost, TODAY's VALUE.

On first day, for Corn, the value of that item's formula would be:
=100*CORN           (for say 100 pounds of corn).  CORN is defined on
first sheet using NAME, INSERT, DEFINE, CORN='Daily Spot Prices'!$B$1,
WHEAT='Daily Spot Prices'!$C$1, SOYBEANS='Daily Spot Prices'!$D$1,
so much for day 1.

For Day 2, the NAME would be: CORN='Daily Spot Prices'!$B$2,
WHEAT='Daily Spot Prices'!$C$2, SOYBEANS='Daily Spot Prices'!$D$2,
thus day 2.

Now, each day I start a new row, Column 1 is date, ColumnB is CORN
spot price, Column C is WHEAT spot price and Column D is SOYBEAN spot
price, and so on.

Now, each day after entering date/spot prices in the next row, I have
to open INSERT, NAME, DEFINE and manually go in and change the row
number in each of the definitions to have the spreadsheet refrence the
day's price and apply formula to current price.

What I need to know is if there is a way to automatically have NAME
functions to refrence the ROW that I have highlighted (sort of a
"return ROW" function) which would save from having to take the extra
step of manually changing the ROW numbers in the NAME definition
formulas?  If it was possible to do this, I could go back any day and
get total inventory cost/value just by highliting appropriate row.

I've tried several things from the HELP file, but none have worked so
far, so as last resort am asking this newsgroup.  I am pretty much a
novice in EXCEL, and am using EXCEL 2003.  By using HELP file was able
to complete everything except the automatic ROW function.

Thanks for any leads,

Jim

On first sh
Franz Verga - 24 Jul 2006 01:35 GMT
> I have a two worksheet excel program, and it is being designed as a
> sort of commodities "inventory net worth" program.
[quoted text clipped - 26 lines]
> number in each of the definitions to have the spreadsheet refrence the
> day's price and apply formula to current price.

Hi Jim,

I think this should solve your problem of defining dynamic names:

CORN=OFFSET('Daily Spot Prices'!$B$1,COUNTA('Daily Spot
Prices'!$B:$B),0,1,1)

WHEAT=OFFSET('Daily Spot Prices'!$C$1,COUNTA('Daily Spot
Prices'!$C:$C),0,1,1)

and so on...

Signature

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy

Jim - 24 Jul 2006 11:40 GMT
Franz;

Thank you, tried it but it did not work.  Kept getting the Value $0.00
in the inventory section no matter what the amount or the daily price.

Jim

>> I have a two worksheet excel program, and it is being designed as a
>> sort of commodities "inventory net worth" program.
[quoted text clipped - 38 lines]
>
>and so on...
Franz Verga - 24 Jul 2006 16:13 GMT
If you like you could try to upload an example file to www.savefile.com, so
I can try to solve it...

> Franz;
>
[quoted text clipped - 46 lines]
>>
>> and so on...

Signature

(I'm not sure of  names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.