Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Set value of cell to calculation

I have two spreadsheets €“ one is called Branch A and one is called Company.
Branch A contains financial information, but only for the current month.
Company is a summary which has columns for each of the months, January,
February etc. At the top of this spreadsheet is a drop-down box with the
current month in it called CURRMONTH.

What I need is to be able to make a calculation from Branch A and have it
place the result in the relevant column on the Company spreadsheet. The
calculation is:

=[Branch A.xls]Main!A102-[Branch A.xls]Main!A103

but it needs to go in the correct column based on what month is selected in
the CURRMONTH drop-down. How do I do this?

Thanks for your help

Martyn

--
Excel 2000, Windows 2003 over Citrix PS4
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default Set value of cell to calculation

If the dates are in order then the LINK cell for the control (if Form
control) will return the control list number, if an activeX control then use
the ListIndex property that will return the selected control entry -1, you
can use this directly to offset your target cell.

If dates are not in order then use a VLOOKUP to take the value from the
control, lookup this value in a control table and get the cell reference
into which you wish to place the value.



--

Regards,
Nigel




"WembleyBear" wrote in message
...
I have two spreadsheets €“ one is called Branch A and one is called Company.
Branch A contains financial information, but only for the current month.
Company is a summary which has columns for each of the months, January,
February etc. At the top of this spreadsheet is a drop-down box with the
current month in it called CURRMONTH.

What I need is to be able to make a calculation from Branch A and have it
place the result in the relevant column on the Company spreadsheet. The
calculation is:

=[Branch A.xls]Main!A102-[Branch A.xls]Main!A103

but it needs to go in the correct column based on what month is selected
in
the CURRMONTH drop-down. How do I do this?

Thanks for your help

Martyn

--
Excel 2000, Windows 2003 over Citrix PS4


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
Row Manipulation / duplicate dependant on cell value... and perform calculation on another cell... Brian Excel Programming 3 August 15th 06 02:10 PM
skip cell if blank go on to use another cell in calculation sosborne Excel Programming 0 March 8th 06 09:33 PM
How do I exclude a cell from an average calculation when the cell. Sam Excel Discussion (Misc queries) 1 September 7th 05 05:16 PM
Use cell in calculation only if offset cell contains data Bob Phillips[_6_] Excel Programming 0 January 12th 04 09:08 PM
Use cell in calculation only if offset cell contains data Jonnie Excel Programming 0 January 12th 04 08:39 PM


All times are GMT +1. The time now is 06:52 AM.

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"