PC Review


Reply
Thread Tools Rate Thread

Adding items in one row if criteria in another column is met.

 
 
migpics
Guest
Posts: n/a
 
      7th May 2008
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sum of items in a column if they meet two criteria in another colu vlpckett Microsoft Excel Worksheet Functions 6 12th Feb 2009 11:44 PM
Counting items in one column based on criteria in another column luttona Microsoft Excel Worksheet Functions 3 13th Jun 2008 06:00 PM
Counting items in one column based on criteria in another kmc103 Microsoft Excel Worksheet Functions 3 15th May 2008 09:17 PM
sum items in a column based on criteria located in other columns =?Utf-8?B?S3VydA==?= Microsoft Excel Misc 1 2nd Aug 2006 05:12 PM
Counting Unique Items in a column (Multiple Criteria) Amish Patel Microsoft Excel Worksheet Functions 3 30th Sep 2004 08:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:40 AM.