lookup with mulitiple validations?

sixsteps268

New Member
Joined
May 9, 2013
Messages
15
I've been searching for about an hour can't find an answer so I'm posting a new thread. I'd love any help you guys can provide me.

I am working on some analysis that compares sales to returns.

I have a workbook with a sales sheet that contains Order ID #'s and Sku #'s. Then I have a returns sheet in the same workbook that contains Order ID #'s and Sku #'s.

Some Order ID #'s are single SKU orders, some are not. I have many instances of multiple sku orders where only 1 SKU was returned and not the whole order.

A simple vlookup returns if the order shows up as being returned, but I can't seem to figure out how to return a value if both the order and the sku is returned.

I can't quite get the logic to work. It's like if the order is returned and if the sku of that same order is returned, then return the value.

Does that make sense?
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Are you trying to show whether each individual sku is returned?
If so I would make a helper column on both sheets that contains the order # and sku# joined together so =order&sku.
Then do a lookup against that.
 
Upvote 0
F5 and G5 Are the Order and Skew Numbers

A2:C19 Represent the information

Column A Order #s
Column B Skews
Column C Returned Values

You will probably need to modify the code to fit your info.

Code:
=INDEX(A2:C19,MATCH(F5&G5,A2:A19&B2:B19,0),3)

Confirm with Ctrl+Shift+Enter not just Enter
 
Upvote 0
Are you trying to add a column in the Sales sheet that will tell you if that line was returned? If so they the following would work:

=IF((COUNTIFS(Returns!$A$2:$A$10,A2,Returns!$B$2:$B$10,B2))>0,"Yes","No")
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,738
Members
448,988
Latest member
BB_Unlv

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