#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Sumproduct Question

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Sumproduct Question

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default Sumproduct Question

=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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Sumproduct Question

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default Sumproduct Question

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
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
Sumproduct question? capt Excel Discussion (Misc queries) 3 January 11th 08 04:43 PM
Sumproduct question wx4usa Excel Discussion (Misc queries) 1 July 30th 07 11:52 PM
Sumproduct question Brad Excel Worksheet Functions 2 November 1st 06 07:32 PM
SUMPRODUCT Question s2m via OfficeKB.com Excel Discussion (Misc queries) 2 August 9th 06 02:34 PM
sumproduct question Dominique Feteau Excel Worksheet Functions 8 July 26th 05 08:43 AM


All times are GMT +1. The time now is 09:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"