Lookup With Conditions

Graemea

Board Regular
Joined
Oct 30, 2015
Messages
119
Office Version
  1. 365
Platform
  1. Windows
Hi,


I need to extract data from a range of data based on 3 criteria. I've used SUMPRODUCT rather than an array formula with INDEX and MATCH:


=SUMPRODUCT((Column A = Product Code)*(Row 2 = Date)*(Row 3 = "Adjusted Sales")*(values to extract))


The problem is that there is a second column with the heading name "Adjusted Sales", containing different data, associated with each
Product Code and Date pairing.


It isn't practical to change the column headings to distinguish the two sets of data at each date associated with the heading "Adjusted Sales".


One way to distingush the second column called "Adjusted Sales" from the other is that it always occurs immediately to the right of a column
with the heading "Sales Rep".


Can someone please suggest how to amend the above SUMPRODUCT formula to distinguish between the two columns headed "Adjusted Sales"?

Or if an INDEX-MATCH construction is easier to do, that would be great too


Thanks very much!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
I know you said it's not practical to change the heading but how about adding a ` or . so the heading does not match.

If this does not solve your issue could you please provide an example of your current layout, and an example of the layout you want it to return?
 
Upvote 0
If you headers are in Row 1, start your SUMPRODUCT ranges from Row 2 on down. We could have modified your formula to show you this if you had actually posted your real formula instead of the generic one, non-working one.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top