#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Complicated Formula

Hello,

Here's what I am trying to accomplish:

Sheet 1
Column A Column B
Row 1 A AA
Row 2 B BB
Row 3 C CC

Sheet 2
Column H Column J Column M
Row 1 A AA 150
Row 2 B BB 200
Row 3 A CC 300

I want the forumla to say:

If cell A1 in Sheet 1 appears anywhere in column H in Sheet 2, AND cell B1
in Sheet 1 appears anywhere in column J in Sheet 2, then give me the value
for it from column M in Sheet 2. Such a formula would return a result of 150.

Any help would be most appreciated. Thank you.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Complicated Formula

=SUMPRODUCT(--(Sheet2!H1:H10000=A1),--(Sheet2!J1:J10000=B1),Sheet2!M1:M10000)

"Fgbdrum" wrote:

Hello,

Here's what I am trying to accomplish:

Sheet 1
Column A Column B
Row 1 A AA
Row 2 B BB
Row 3 C CC

Sheet 2
Column H Column J Column M
Row 1 A AA 150
Row 2 B BB 200
Row 3 A CC 300

I want the forumla to say:

If cell A1 in Sheet 1 appears anywhere in column H in Sheet 2, AND cell B1
in Sheet 1 appears anywhere in column J in Sheet 2, then give me the value
for it from column M in Sheet 2. Such a formula would return a result of 150.

Any help would be most appreciated. Thank you.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Complicated Formula

Hi,
try
=SUMPRODUCT(--(Sheet2!H1:H10000=A1),--(Sheet2!J1:J10000=B1),Sheet2!M1:M10000)



"Fgbdrum" wrote:

Hello,

Here's what I am trying to accomplish:

Sheet 1
Column A Column B
Row 1 A AA
Row 2 B BB
Row 3 C CC

Sheet 2
Column H Column J Column M
Row 1 A AA 150
Row 2 B BB 200
Row 3 A CC 300

I want the forumla to say:

If cell A1 in Sheet 1 appears anywhere in column H in Sheet 2, AND cell B1
in Sheet 1 appears anywhere in column J in Sheet 2, then give me the value
for it from column M in Sheet 2. Such a formula would return a result of 150.

Any help would be most appreciated. Thank you.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 18
Default Complicated Formula

Hello,

Tried out the formula and here's what it looks like in real life:

=SUMPRODUCT(--(SalPlans!$A$2:$A$781='All
Other'!$I3682),--(SalPlans!$G$2:$G$781='All
Other'!$AQ3682),SalPlans!$H$2:$H$781)

For the most part, it is spot on, however, I am asking it to return a number
to me, for example, 30,000. In some spots, it is taking that number and
doubling it and returning 60,000 as the result. Any idea why that might be
happening? Thanks again.

"Eduardo" wrote:

Hi,
try
=SUMPRODUCT(--(Sheet2!H1:H10000=A1),--(Sheet2!J1:J10000=B1),Sheet2!M1:M10000)



"Fgbdrum" wrote:

Hello,

Here's what I am trying to accomplish:

Sheet 1
Column A Column B
Row 1 A AA
Row 2 B BB
Row 3 C CC

Sheet 2
Column H Column J Column M
Row 1 A AA 150
Row 2 B BB 200
Row 3 A CC 300

I want the forumla to say:

If cell A1 in Sheet 1 appears anywhere in column H in Sheet 2, AND cell B1
in Sheet 1 appears anywhere in column J in Sheet 2, then give me the value
for it from column M in Sheet 2. Such a formula would return a result of 150.

Any help would be most appreciated. Thank you.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Complicated Formula

Hi,
Check for duplications, your formula looks right, you have the same
information twice

"Fgbdrum" wrote:

Hello,

Tried out the formula and here's what it looks like in real life:

=SUMPRODUCT(--(SalPlans!$A$2:$A$781='All
Other'!$I3682),--(SalPlans!$G$2:$G$781='All
Other'!$AQ3682),SalPlans!$H$2:$H$781)

For the most part, it is spot on, however, I am asking it to return a number
to me, for example, 30,000. In some spots, it is taking that number and
doubling it and returning 60,000 as the result. Any idea why that might be
happening? Thanks again.

"Eduardo" wrote:

Hi,
try
=SUMPRODUCT(--(Sheet2!H1:H10000=A1),--(Sheet2!J1:J10000=B1),Sheet2!M1:M10000)



"Fgbdrum" wrote:

Hello,

Here's what I am trying to accomplish:

Sheet 1
Column A Column B
Row 1 A AA
Row 2 B BB
Row 3 C CC

Sheet 2
Column H Column J Column M
Row 1 A AA 150
Row 2 B BB 200
Row 3 A CC 300

I want the forumla to say:

If cell A1 in Sheet 1 appears anywhere in column H in Sheet 2, AND cell B1
in Sheet 1 appears anywhere in column J in Sheet 2, then give me the value
for it from column M in Sheet 2. Such a formula would return a result of 150.

Any help would be most appreciated. Thank you.




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default Complicated Formula

If you are ok with the same information being in there multiple times, just do

=SUMPRODUCT(--(SalPlans!$A$2:$A$781='All
Other'!$I3682),--(SalPlans!$G$2:$G$781='All
Other'!$AQ3682),SalPlans!$H$2:$H$781)/SUMPRODUCT(--(SalPlans!$A$2:$A$781='All
Other'!$I3682),--(SalPlans!$G$2:$G$781='All Other'!$AQ3682))

"Eduardo" wrote:

Hi,
Check for duplications, your formula looks right, you have the same
information twice

"Fgbdrum" wrote:

Hello,

Tried out the formula and here's what it looks like in real life:

=SUMPRODUCT(--(SalPlans!$A$2:$A$781='All
Other'!$I3682),--(SalPlans!$G$2:$G$781='All
Other'!$AQ3682),SalPlans!$H$2:$H$781)

For the most part, it is spot on, however, I am asking it to return a number
to me, for example, 30,000. In some spots, it is taking that number and
doubling it and returning 60,000 as the result. Any idea why that might be
happening? Thanks again.

"Eduardo" wrote:

Hi,
try
=SUMPRODUCT(--(Sheet2!H1:H10000=A1),--(Sheet2!J1:J10000=B1),Sheet2!M1:M10000)



"Fgbdrum" wrote:

Hello,

Here's what I am trying to accomplish:

Sheet 1
Column A Column B
Row 1 A AA
Row 2 B BB
Row 3 C CC

Sheet 2
Column H Column J Column M
Row 1 A AA 150
Row 2 B BB 200
Row 3 A CC 300

I want the forumla to say:

If cell A1 in Sheet 1 appears anywhere in column H in Sheet 2, AND cell B1
in Sheet 1 appears anywhere in column J in Sheet 2, then give me the value
for it from column M in Sheet 2. Such a formula would return a result of 150.

Any help would be most appreciated. Thank you.


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
help with complicated formula Chris Excel Worksheet Functions 10 March 14th 09 09:15 PM
Complicated SUM IF formula mckzach Excel Worksheet Functions 2 June 18th 08 05:26 PM
Complicated formula? Leigh Excel Discussion (Misc queries) 4 November 22nd 07 01:37 AM
Complicated formula Lemony_M Excel Discussion (Misc queries) 10 October 1st 07 03:59 PM
Complicated Formula Stephen Excel Discussion (Misc queries) 12 April 17th 05 01:15 PM


All times are GMT +1. The time now is 12:59 PM.

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"