LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Counting and adding values int two different columns

I'm developing a basic Life Cycle Cost Analysis Spreadsheet and need some
assistance adding the costs of particular activity into a specified year.
Example:

This column checks

if the Cash Flow Year

is listed in the "Year

Cost Occurs" and

and then adds it to the

other rows that apply

for a total cash flow

year.
Cost$ Year Cost Occurs | Cash Flow Year Total in
Cash Flow Year
300 0,2,4,5 | 0
=330+225
225 0,1,3,5 | 1
=225+125
125 1,2,3,4,5 | 2
=125+300
3
=225+125
4
=300+125
5
=300+225+125

I am hoping someone can have some code that will look at the Year cost
occurs and then add it to the Total in Cash Flow Year.

Currently, this is the code I use
=IF(ISNUMBER(SEARCH(","&A2&",",","&'Alternative 1'!$F$8&",")),'Alternative
1'!$G$8, 0)+IF(ISNUMBER(SEARCH(","&A2&",",","&'Alternative
1'!$F$9&",")),'Alternative 1'!$G$9,
0)+IF(ISNUMBER(SEARCH(","&A2&",",","&'Alternative 1'!$F$10&",")),'Alternative
1'!$G$10, 0)

It applies to two different sheets but the lenght of the string is limited
so my formula is basically too long.
Any suggestions to create a loop through an array function?
Thanks
Miguel
 
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
Counting Values Across Columns frankjh19701 Setting up and Configuration of Excel 12 December 6th 06 02:47 PM
Counting Rows Then Counting Values in Columns Michael via OfficeKB.com Excel Programming 1 June 1st 05 04:10 PM
Counting columns, adding totals #2 Dennis Allen Excel Programming 2 July 5th 04 04:59 AM
Counting columns, adding totals #2 Dennis Allen Excel Programming 1 July 2nd 04 08:13 PM
Counting columns, adding totals Dennis Allen Excel Programming 7 July 1st 04 07:34 PM


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