Morning,
Thanks in advance! Ok here is the lay of the land.....
I have 3 tabs in a spreadsheet:
Tab 1 is just a simple summary sheet....this is where I am trying to put the formula.....
[TABLE="width: 288"]
<tbody>[TR]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="class: xl66, width: 64, bgcolor: transparent"]CO#1
[/TD]
[TD="class: xl66, width: 64, bgcolor: transparent"]CO#2
[/TD]
[TD="class: xl66, width: 64, bgcolor: transparent"]CO#3
[/TD]
[TD="class: xl66, width: 64, bgcolor: transparent"]CO#4
[/TD]
[TD="class: xl66, width: 64, bgcolor: transparent"]TOTAL
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]SGA
[/TD]
[TD="class: xl65, bgcolor: yellow"] formula
[/TD]
[TD="class: xl65, bgcolor: yellow"] formula
[/TD]
[TD="class: xl65, bgcolor: yellow"] formula
[/TD]
[TD="class: xl65, bgcolor: yellow"] formula
[/TD]
[TD="class: xl64, bgcolor: transparent"] $ -
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]COR
[/TD]
[TD="class: xl65, bgcolor: yellow"] formula
[/TD]
[TD="class: xl65, bgcolor: yellow"] formula
[/TD]
[TD="class: xl65, bgcolor: yellow"] formula
[/TD]
[TD="class: xl65, bgcolor: yellow"] formula
[/TD]
[TD="class: xl64, bgcolor: transparent"] $ -
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]TOTAL
[/TD]
[TD="class: xl64, bgcolor: transparent"] $ -
[/TD]
[TD="class: xl64, bgcolor: transparent"] $ -
[/TD]
[TD="class: xl64, bgcolor: transparent"] $ -
[/TD]
[TD="class: xl64, bgcolor: transparent"] $ -
[/TD]
[TD="class: xl64, bgcolor: transparent"] $ -
[/TD]
[/TR]
</tbody>[/TABLE]
Company 1 has a specific set of cost centers assigned to it but only ONE profit center....Company 2 has a different set and so on....
Tab 2 is a sheet with data exported from my accounting software....2 columns that I want the formula to reference are COST CENTER and AMOUNT
Here is a small sample of the layout:
[TABLE="width: 717"]
<tbody>[TR]
[TD]Cost Center
[/TD]
[TD]Posting Date
[/TD]
[TD]Document Header Text
[/TD]
[TD]Name
[/TD]
[TD]Amount
[/TD]
[/TR]
[TR]
[TD]1001312
[/TD]
[TD]6/30/2014
[/TD]
[TD]SD AC ATT MOBILITY CHARGE
[/TD]
[TD]AC ATT MOBILITY JUN 2014
[/TD]
[TD]39.09
[/TD]
[/TR]
[TR]
[TD]1001312
[/TD]
[TD]6/1/2014
[/TD]
[TD]SD AC ATT MOBILITY CHARGE
[/TD]
[TD]AC ATT MOBILITY MAY 2014
[/TD]
[TD]-39.09
[/TD]
[/TR]
[TR]
[TD]1001312
[/TD]
[TD]6/30/2014
[/TD]
[TD]SD AC VZ VERIZON WIRELESS
[/TD]
[TD]AC VERIZON WIRELESS JUN 2014
[/TD]
[TD]175.47
[/TD]
[/TR]
[TR]
[TD]1001312
[/TD]
[TD]6/1/2014
[/TD]
[TD]SD AC VZ VERIZON WIRELESS
[/TD]
[TD]AC VZ VERIZON WIRELESS MAY 2014
[/TD]
[TD]-154.74
[/TD]
[/TR]
[TR]
[TD]1001312
[/TD]
[TD]6/30/2014
[/TD]
[TD]SD ATT MOBILITY CHARGE MA
[/TD]
[TD]ATT MOBILITY MAY 2014
[/TD]
[TD]39.09
[/TD]
[/TR]
[TR]
[TD]1001312
[/TD]
[TD]6/30/2014
[/TD]
[TD]SD VZ VERIZON WIRELESS CH
[/TD]
[TD]VERIZON WIRELESS MAY 2014
[/TD]
[TD]175.47
[/TD]
[/TR]
[TR]
[TD]1001314
[/TD]
[TD]6/30/2014
[/TD]
[TD]SD AC VZ VERIZON WIRELESS
[/TD]
[TD]AC VERIZON WIRELESS JUN 2014
[/TD]
[TD]230.41
[/TD]
[/TR]
</tbody>[/TABLE]
Tab 3 is a sheet that I want to serve as a lookup tab....columns important here are COST CENTER, FUNCTIONAL AREA (SGA/COR), and PROFIT CENTER.
Here is a small sample of the layout:
[TABLE="width: 581"]
<tbody>[TR]
[TD]Cost Center
[/TD]
[TD][/TD]
[TD]Company Code
[/TD]
[TD]Functional Area
[/TD]
[TD]Object Currency
[/TD]
[TD]Profit Center
[/TD]
[/TR]
[TR]
[TD]1000001
[/TD]
[TD]Rev & Cost of Rev
[/TD]
[TD]1250
[/TD]
[TD]SERVICE
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000002
[/TD]
[TD]Sales Support
[/TD]
[TD]1250
[/TD]
[TD]SGADMIN
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000003
[/TD]
[TD]Documentation
[/TD]
[TD]1250
[/TD]
[TD]SERVICE
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000004
[/TD]
[TD]Training
[/TD]
[TD]1250
[/TD]
[TD]SERVICE
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000005
[/TD]
[TD]Client Services
[/TD]
[TD]1250
[/TD]
[TD]SERVICE
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000006
[/TD]
[TD]Account Management
[/TD]
[TD]1250
[/TD]
[TD]SGADMIN
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000007
[/TD]
[TD]Conversions
[/TD]
[TD]1250
[/TD]
[TD]SERVICE
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000008
[/TD]
[TD]Conversions
[/TD]
[TD]1250
[/TD]
[TD]SERVICE
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000009
[/TD]
[TD]Risk Management
[/TD]
[TD]1250
[/TD]
[TD]SGADMIN
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000010
[/TD]
[TD]Premier Ecom (Esol)
[/TD]
[TD]1250
[/TD]
[TD]SERVICE
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000011
[/TD]
[TD]Branch Capture
[/TD]
[TD]1250
[/TD]
[TD]SERVICE
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000012
[/TD]
[TD]Product Development
[/TD]
[TD]1250
[/TD]
[TD]SERVICE
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
</tbody>[/TABLE]
So what I am trying to come up with in a formula is the following.....I will use TAB 1 Company #1 and the SGA cell for the sake of discussion
* Search TAB 3 for the profit center for company #1....look to see if it has a FUNCTIONAL AREA labeled as SGADMIN....if so then somehow retain the COST CENTER list in memory.....
* then take that list of cost centers and add the amounts for those cost centers in TAB 2
Sorry if this is messy....I wanted to try to provide a good picture of what I have.....
Thanks in advance! Ok here is the lay of the land.....
I have 3 tabs in a spreadsheet:
Tab 1 is just a simple summary sheet....this is where I am trying to put the formula.....
[TABLE="width: 288"]
<tbody>[TR]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="class: xl66, width: 64, bgcolor: transparent"]CO#1
[/TD]
[TD="class: xl66, width: 64, bgcolor: transparent"]CO#2
[/TD]
[TD="class: xl66, width: 64, bgcolor: transparent"]CO#3
[/TD]
[TD="class: xl66, width: 64, bgcolor: transparent"]CO#4
[/TD]
[TD="class: xl66, width: 64, bgcolor: transparent"]TOTAL
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]SGA
[/TD]
[TD="class: xl65, bgcolor: yellow"] formula
[/TD]
[TD="class: xl65, bgcolor: yellow"] formula
[/TD]
[TD="class: xl65, bgcolor: yellow"] formula
[/TD]
[TD="class: xl65, bgcolor: yellow"] formula
[/TD]
[TD="class: xl64, bgcolor: transparent"] $ -
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]COR
[/TD]
[TD="class: xl65, bgcolor: yellow"] formula
[/TD]
[TD="class: xl65, bgcolor: yellow"] formula
[/TD]
[TD="class: xl65, bgcolor: yellow"] formula
[/TD]
[TD="class: xl65, bgcolor: yellow"] formula
[/TD]
[TD="class: xl64, bgcolor: transparent"] $ -
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]TOTAL
[/TD]
[TD="class: xl64, bgcolor: transparent"] $ -
[/TD]
[TD="class: xl64, bgcolor: transparent"] $ -
[/TD]
[TD="class: xl64, bgcolor: transparent"] $ -
[/TD]
[TD="class: xl64, bgcolor: transparent"] $ -
[/TD]
[TD="class: xl64, bgcolor: transparent"] $ -
[/TD]
[/TR]
</tbody>[/TABLE]
Company 1 has a specific set of cost centers assigned to it but only ONE profit center....Company 2 has a different set and so on....
Tab 2 is a sheet with data exported from my accounting software....2 columns that I want the formula to reference are COST CENTER and AMOUNT
Here is a small sample of the layout:
[TABLE="width: 717"]
<tbody>[TR]
[TD]Cost Center
[/TD]
[TD]Posting Date
[/TD]
[TD]Document Header Text
[/TD]
[TD]Name
[/TD]
[TD]Amount
[/TD]
[/TR]
[TR]
[TD]1001312
[/TD]
[TD]6/30/2014
[/TD]
[TD]SD AC ATT MOBILITY CHARGE
[/TD]
[TD]AC ATT MOBILITY JUN 2014
[/TD]
[TD]39.09
[/TD]
[/TR]
[TR]
[TD]1001312
[/TD]
[TD]6/1/2014
[/TD]
[TD]SD AC ATT MOBILITY CHARGE
[/TD]
[TD]AC ATT MOBILITY MAY 2014
[/TD]
[TD]-39.09
[/TD]
[/TR]
[TR]
[TD]1001312
[/TD]
[TD]6/30/2014
[/TD]
[TD]SD AC VZ VERIZON WIRELESS
[/TD]
[TD]AC VERIZON WIRELESS JUN 2014
[/TD]
[TD]175.47
[/TD]
[/TR]
[TR]
[TD]1001312
[/TD]
[TD]6/1/2014
[/TD]
[TD]SD AC VZ VERIZON WIRELESS
[/TD]
[TD]AC VZ VERIZON WIRELESS MAY 2014
[/TD]
[TD]-154.74
[/TD]
[/TR]
[TR]
[TD]1001312
[/TD]
[TD]6/30/2014
[/TD]
[TD]SD ATT MOBILITY CHARGE MA
[/TD]
[TD]ATT MOBILITY MAY 2014
[/TD]
[TD]39.09
[/TD]
[/TR]
[TR]
[TD]1001312
[/TD]
[TD]6/30/2014
[/TD]
[TD]SD VZ VERIZON WIRELESS CH
[/TD]
[TD]VERIZON WIRELESS MAY 2014
[/TD]
[TD]175.47
[/TD]
[/TR]
[TR]
[TD]1001314
[/TD]
[TD]6/30/2014
[/TD]
[TD]SD AC VZ VERIZON WIRELESS
[/TD]
[TD]AC VERIZON WIRELESS JUN 2014
[/TD]
[TD]230.41
[/TD]
[/TR]
</tbody>[/TABLE]
Tab 3 is a sheet that I want to serve as a lookup tab....columns important here are COST CENTER, FUNCTIONAL AREA (SGA/COR), and PROFIT CENTER.
Here is a small sample of the layout:
[TABLE="width: 581"]
<tbody>[TR]
[TD]Cost Center
[/TD]
[TD][/TD]
[TD]Company Code
[/TD]
[TD]Functional Area
[/TD]
[TD]Object Currency
[/TD]
[TD]Profit Center
[/TD]
[/TR]
[TR]
[TD]1000001
[/TD]
[TD]Rev & Cost of Rev
[/TD]
[TD]1250
[/TD]
[TD]SERVICE
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000002
[/TD]
[TD]Sales Support
[/TD]
[TD]1250
[/TD]
[TD]SGADMIN
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000003
[/TD]
[TD]Documentation
[/TD]
[TD]1250
[/TD]
[TD]SERVICE
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000004
[/TD]
[TD]Training
[/TD]
[TD]1250
[/TD]
[TD]SERVICE
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000005
[/TD]
[TD]Client Services
[/TD]
[TD]1250
[/TD]
[TD]SERVICE
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000006
[/TD]
[TD]Account Management
[/TD]
[TD]1250
[/TD]
[TD]SGADMIN
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000007
[/TD]
[TD]Conversions
[/TD]
[TD]1250
[/TD]
[TD]SERVICE
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000008
[/TD]
[TD]Conversions
[/TD]
[TD]1250
[/TD]
[TD]SERVICE
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000009
[/TD]
[TD]Risk Management
[/TD]
[TD]1250
[/TD]
[TD]SGADMIN
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000010
[/TD]
[TD]Premier Ecom (Esol)
[/TD]
[TD]1250
[/TD]
[TD]SERVICE
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000011
[/TD]
[TD]Branch Capture
[/TD]
[TD]1250
[/TD]
[TD]SERVICE
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
[TR]
[TD]1000012
[/TD]
[TD]Product Development
[/TD]
[TD]1250
[/TD]
[TD]SERVICE
[/TD]
[TD]USD
[/TD]
[TD]10011
[/TD]
[/TR]
</tbody>[/TABLE]
So what I am trying to come up with in a formula is the following.....I will use TAB 1 Company #1 and the SGA cell for the sake of discussion
* Search TAB 3 for the profit center for company #1....look to see if it has a FUNCTIONAL AREA labeled as SGADMIN....if so then somehow retain the COST CENTER list in memory.....
* then take that list of cost centers and add the amounts for those cost centers in TAB 2
Sorry if this is messy....I wanted to try to provide a good picture of what I have.....