Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 72
Default Macro to subtract cells if...

I need to write a macro that will search for the row that includes the word
"Guaranteed" and enter the value of the cell in column N of that row into the
cell in column N of the row just below the last row (the total row). Then,
subtract that value from the total (the row just above).

For example... column A includes a fund name in each row. Column B includes
values of these funds in each row. Some spreadsheets will have the fund
Guaranteed and some won't. If they do, I will need to subtract the value of
Guaranteed from the total of the funds. The last row has the total of the
funds in column B. The row directly below the total should show the value of
the Guaranteed fund and the following row would show the difference between
the total and the Guaranteed.

Can anyone help with this?
--
Thank you, Jodie
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
I want to add or subtract a range of cells wormburner Excel Discussion (Misc queries) 2 May 31st 10 11:03 PM
How can I subtract cells in a row wildfyre New Users to Excel 3 February 14th 06 07:26 PM
How do i subtract cells in an IF function? Ryan Excel Worksheet Functions 1 February 9th 06 04:33 AM
Macro to subtract data from cells s_tyrone Excel Programming 1 September 23rd 05 03:25 PM
how to add or subtract from two cells into one labjr1231 Excel Worksheet Functions 2 September 6th 05 06:40 AM


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

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"