Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default Manipulating text of an equation

Excel Experts,

I have a number of equations which I have to edit each day.

I receive a MTD commission figure each day which I enter in one cell, B4.

I compute the Daily commission figure in cell A4 using the formula
=today's MTD commission-yesterday's MTD commission

For the edit, I delete the text "-yesterday's MTD commission", then go to
after the equal sign and type in the new MTD commission, then put a minus
before yesterday's MTD commission.

Below is how it works on the spreadsheet:

Day 0 MTD Commission = 5000

Day 1
A B
1
2 Daily MTD
3 Commission Commission
4 =5200-5000 5200
5

DAY 2, MTD Commission = 5600
A B
1
2 Daily MTD
3 Commission Commission
4 =5600-5200 5600
5

My question is, once I have entered the "5600" into cell B4, what code will
do the editing in cell A4 to change it from "=5200-5000" to "=5600-5200"?

Thanks,
Alan


--
achidsey
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 94
Default Manipulating text of an equation

Perhaps I'm being too simple here, but could you not use

='Day 2 MTD Commission'!B4 - 'Day 1 MTD Commission'!B4

You'll need to later the bit in ' ' to the actual sheet names being used,
but it should work.

Perhaps I don't understand?

HTH.

"achidsey" wrote:

Excel Experts,

I have a number of equations which I have to edit each day.

I receive a MTD commission figure each day which I enter in one cell, B4.

I compute the Daily commission figure in cell A4 using the formula
=today's MTD commission-yesterday's MTD commission

For the edit, I delete the text "-yesterday's MTD commission", then go to
after the equal sign and type in the new MTD commission, then put a minus
before yesterday's MTD commission.

Below is how it works on the spreadsheet:

Day 0 MTD Commission = 5000

Day 1
A B
1
2 Daily MTD
3 Commission Commission
4 =5200-5000 5200
5

DAY 2, MTD Commission = 5600
A B
1
2 Daily MTD
3 Commission Commission
4 =5600-5200 5600
5

My question is, once I have entered the "5600" into cell B4, what code will
do the editing in cell A4 to change it from "=5200-5000" to "=5600-5200"?

Thanks,
Alan


--
achidsey

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
Manipulating Text to create HLOOKUP CW Excel Worksheet Functions 8 September 22nd 08 01:23 PM
Help with manipulating text in Excel 2003 Big UT Fan Excel Discussion (Misc queries) 4 April 9th 08 07:33 PM
Manipulating Text between sheets, in a workbook mdjennings Excel Discussion (Misc queries) 2 June 14th 05 10:20 PM
Any help in manipulating text appreciated Ronl Excel Programming 1 November 1st 04 11:29 AM
Manipulating text - 2 queries Hotbird[_2_] Excel Programming 1 December 24th 03 02:12 AM


All times are GMT +1. The time now is 03:45 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"