I think this involves an OFFSET function but I'm not certain:
Here's the scenario:
Column A will contain X's (marks items to be taken off list)
Column B contains codes: There are three of these, and there will be many of each in the column: I'll name this range "Range" (how creative!). These codes are:
Metro
NonMetro
Branch
Each code as a value (not listed on the spreadseet, but built into the formula below:
Branch =100
NonMetro =200
Metro =300
Cell C1 contains the following formula that combines the total value of each code:
=(COUNTIF(Range,"Branch"
*100)+(COUNTIF(Range,"NonMetro"
*200)+(COUNTIF(Range,"Metro"
*300)
In Cell C2 I need a formula that basically takes the formula above and conditions it to do the same ONLY for those codes (in column B) that have a corresponding X next to them (in column A).
C3 will have a formula that subtracts C2 from C1. So, cell C1 contains the total of counts of each code multiplied by their respective values; Cell C2 contains the counts of each code marked "X" multiplied by their respective values(and C3 will show the difference between them).
I hope I explained this thoroughly.
Thanks!
Candy
Here's the scenario:
Column A will contain X's (marks items to be taken off list)
Column B contains codes: There are three of these, and there will be many of each in the column: I'll name this range "Range" (how creative!). These codes are:
Metro
NonMetro
Branch
Each code as a value (not listed on the spreadseet, but built into the formula below:
Branch =100
NonMetro =200
Metro =300
Cell C1 contains the following formula that combines the total value of each code:
=(COUNTIF(Range,"Branch"
In Cell C2 I need a formula that basically takes the formula above and conditions it to do the same ONLY for those codes (in column B) that have a corresponding X next to them (in column A).
C3 will have a formula that subtracts C2 from C1. So, cell C1 contains the total of counts of each code multiplied by their respective values; Cell C2 contains the counts of each code marked "X" multiplied by their respective values(and C3 will show the difference between them).
I hope I explained this thoroughly.
Thanks!
Candy