Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a following table:
Name Qtr Rev$ Net$ New York 2007Q1 1,000 800 New York 2007Q2 2,000 500 New Jersey 2007Q1 1,200 600 New Jersey 2007Q2 1,500 800 I want to convert them in the below format based on the Name field. THe date would be pulled from the top table. 2007Q1 2007Q2 Name Rev$ Net$ Rev$ Net$ New Jersey 1,200 600 1,500 800 GA CA New York Does anyone have any idea? I've tried sumproduct function, but it didn't work. thanks! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Why not a pivot table???
-- HTH... Jim Thomlinson " wrote: I have a following table: Name Qtr Rev$ Net$ New York 2007Q1 1,000 800 New York 2007Q2 2,000 500 New Jersey 2007Q1 1,200 600 New Jersey 2007Q2 1,500 800 I want to convert them in the below format based on the Name field. THe date would be pulled from the top table. 2007Q1 2007Q2 Name Rev$ Net$ Rev$ Net$ New Jersey 1,200 600 1,500 800 GA CA New York Does anyone have any idea? I've tried sumproduct function, but it didn't work. thanks! |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=sumproduct(--(a2:a15=a20)*(b2:b15=b18),(c2:c15))
but as Jim told you PT will be the best option hth -- regards from Brazil Thanks in advance for your feedback. Marcelo " escreveu: I have a following table: Name Qtr Rev$ Net$ New York 2007Q1 1,000 800 New York 2007Q2 2,000 500 New Jersey 2007Q1 1,200 600 New Jersey 2007Q2 1,500 800 I want to convert them in the below format based on the Name field. THe date would be pulled from the top table. 2007Q1 2007Q2 Name Rev$ Net$ Rev$ Net$ New Jersey 1,200 600 1,500 800 GA CA New York Does anyone have any idea? I've tried sumproduct function, but it didn't work. thanks! |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Jun 2, 4:03*pm, Marcelo wrote:
=sumproduct(--(a2:a15=a20)*(b2:b15=b18),(c2:c15)) but as Jim told you PT will be the best option hth -- regards from Brazil Thanks in advance for your feedback. Marcelo " escreveu: I have a following table: Name * * * * *Qtr * * * * * *Rev$ * * *Net$ New York * *2007Q1 * * 1,000 * * 800 New York * *2007Q2 * * 2,000 * * 500 New Jersey *2007Q1 * *1,200 * * 600 New Jersey *2007Q2 * *1,500 * * 800 I want to convert them in the below format based on the Name field. THe date would be pulled from the top table. * * * * * * * * * * * * * *2007Q1 * * * * * * * * * * * *2007Q2 Name * * * * * Rev$ * * * * Net$ * * * * * * Rev$ * * * * * Net$ New Jersey *1,200 * *600 * * * *1,500 * * * * * *800 GA CA New York Does anyone have any idea? *I've tried sumproduct function, but it didn't work. *thanks!- Hide quoted text - - Show quoted text - Marcelo, your formual works great but it does not compare the Qtr field, so how do I insert that in your formula to complete the formual? Also, the pivot doesn't work since the name would be based on the Vlookup. |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Jun 2, 4:03*pm, Marcelo wrote:
=sumproduct(--(a2:a15=a20)*(b2:b15=b18),(c2:c15)) but as Jim told you PT will be the best option hth -- regards from Brazil Thanks in advance for your feedback. Marcelo " escreveu: I have a following table: Name * * * * *Qtr * * * * * *Rev$ * * *Net$ New York * *2007Q1 * * 1,000 * * 800 New York * *2007Q2 * * 2,000 * * 500 New Jersey *2007Q1 * *1,200 * * 600 New Jersey *2007Q2 * *1,500 * * 800 I want to convert them in the below format based on the Name field. THe date would be pulled from the top table. * * * * * * * * * * * * * *2007Q1 * * * * * * * * * * * *2007Q2 Name * * * * * Rev$ * * * * Net$ * * * * * * Rev$ * * * * * Net$ New Jersey *1,200 * *600 * * * *1,500 * * * * * *800 GA CA New York Does anyone have any idea? *I've tried sumproduct function, but it didn't work. *thanks!- Hide quoted text - - Show quoted text - Marcelo, your formula works great but it left off comparing Rev$ and Net$ fields. How do I insert that to complete your formula? Also, pivot won't work to achieve what I'm trying to do becuase the name field is based on Vlookup. thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sumproduct question? | Excel Discussion (Misc queries) | |||
Sumproduct question | Excel Discussion (Misc queries) | |||
Sumproduct question | Excel Worksheet Functions | |||
SUMPRODUCT Question | Excel Discussion (Misc queries) | |||
sumproduct question | Excel Worksheet Functions |