Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 557
Default MACRO OR FORMULA NEEDED FOR CALCULATION

Budget 17000

A C
E F-----------------COLOUMNS
Code Estimate Spending Actual Spendings Balance-----------
HEADINGS
1400 1500
G54 130
155
STU 1200 400
563 500
1000
HJ4 700
965 600
500

REQUIREMENT
I want "Macro" or "Formula" which can calculate Balance in Coloumn "F"
cells

CALCULATION METHOD SHOULD BE
As above mentioned that Budget is 17000 so in balance coloumn the
Macro or
Formula should minus first "Actula Spendings" figure from the Budget
and if there is no figure
in any cell of "Actual Spendings" coloumn then it should minus figure
of same Row cell in
"Estimate Spendings" coloumn. In other words it should always prefer
minusing figures
from "Actual Spendings" coloumn first and if there is no figure in
"Actual Spendings"
coloumn then it should minus figure from "Estimate Spendings" Coloumn.
And also if there
any code been put in "Code" coloumn cells then a text of "NOT RELATED"
should appear
in same row cell of "Balance" coloumn.

Please if you have any problem understanding above Question i have
also saved my excel file
in savefile.com where you can upload your files. Please see the link
below if you want to see the spreadsheet for more understanding.

http://www.savefile.com/files/1350632

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 557
Default MACRO OR FORMULA NEEDED FOR CALCULATION

On 30 Jan, 22:36, K wrote:
Budget *17000

* A * * * * * * * * * * * * *C
E * * * * * * * * * * * * F-----------------COLOUMNS
Code * * * *Estimate Spending * *Actual Spendings * * * * * Balance-----------
HEADINGS
* * * * * * * * 1400 * * * * * *1500
G54 * * * * * * 130
* * * * * * * * 155
STU * * * * * * 1200 * * * * * *400
* * * * * * * * 563 * * * * * * 500
* * * * * * * * 1000
HJ4 * * * * * * 700
* * * * * * * * 965 * * * * * * 600
* * * * * * * * 500

REQUIREMENT
I want "Macro" or "Formula" which can calculate Balance in Coloumn "F"
cells

CALCULATION METHOD SHOULD BE
As above mentioned that Budget is 17000 so in balance coloumn the
Macro or
Formula should minus first "Actula Spendings" figure from the Budget
and if there is no figure
in any cell of "Actual Spendings" coloumn then it should minus figure
of same Row cell in
"Estimate Spendings" coloumn. *In other words it should always prefer
minusing figures
from "Actual Spendings" coloumn first and if there is no figure in
"Actual Spendings"
coloumn then it should minus figure from "Estimate Spendings" Coloumn.
And also if there
any code been put in "Code" coloumn cells then a text of "NOT RELATED"
should appear
in same row cell of "Balance" coloumn.

Please if you have any problem understanding above Question i have
also saved my excel file
in savefile.com where you can upload your files. *Please see the link
below if you want to see the spreadsheet for more understanding.

http://www.savefile.com/files/1350632


sorry as top data gone bit funny i have tried to show it again (please
see below)

Budget 17000

A C
E F
Code Estimate Spending Actual Spendings Balance
1400 1500
G54 130
155
STU 1200 400
563 500
1000
HJ4 700
965 600
500
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,345
Default MACRO OR FORMULA NEEDED FOR CALCULATION

If I follow you correctly and with the Budget figure in C1, the headers in
A2:F2 and the 14000/15000 in Row 3 then in F3 try:

=IF(COUNT(C3,E3)0,C1-IF(E3<"",E3,C3),"")

then in F4:
=IF(COUNT(C4,E4)0,F3-IF(E4<"",E4,C4),"")

and drag down as far as required.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"K" wrote in message
...
On 30 Jan, 22:36, K wrote:
Budget 17000

A C
E F-----------------COLOUMNS
Code Estimate Spending Actual Spendings Balance-----------
HEADINGS
1400 1500
G54 130
155
STU 1200 400
563 500
1000
HJ4 700
965 600
500

REQUIREMENT
I want "Macro" or "Formula" which can calculate Balance in Coloumn "F"
cells

CALCULATION METHOD SHOULD BE
As above mentioned that Budget is 17000 so in balance coloumn the
Macro or
Formula should minus first "Actula Spendings" figure from the Budget
and if there is no figure
in any cell of "Actual Spendings" coloumn then it should minus figure
of same Row cell in
"Estimate Spendings" coloumn. In other words it should always prefer
minusing figures
from "Actual Spendings" coloumn first and if there is no figure in
"Actual Spendings"
coloumn then it should minus figure from "Estimate Spendings" Coloumn.
And also if there
any code been put in "Code" coloumn cells then a text of "NOT RELATED"
should appear
in same row cell of "Balance" coloumn.

Please if you have any problem understanding above Question i have
also saved my excel file
in savefile.com where you can upload your files. Please see the link
below if you want to see the spreadsheet for more understanding.

http://www.savefile.com/files/1350632

sorry as top data gone bit funny i have tried to show it again (please
see below)

Budget 17000

A C
E F
Code Estimate Spending Actual Spendings Balance
1400 1500
G54 130
155
STU 1200 400
563 500
1000
HJ4 700
965 600
500


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
Formula for the calculation needed to come up with a total Phillse Excel Worksheet Functions 5 April 7th 09 07:05 PM
Formula needed to concatenate text with result from calculation Mgville Excel Discussion (Misc queries) 1 February 13th 09 02:48 PM
Please Macro or Formula Help needed K[_2_] Excel Programming 18 December 28th 07 03:05 PM
Macro or Formula needed Shu of AZ Excel Discussion (Misc queries) 13 January 10th 07 01:26 AM
Formula or Macro needed? Query Excel Discussion (Misc queries) 4 October 12th 05 03:03 AM


All times are GMT +1. The time now is 10:53 AM.

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"