Min and If Statements Combined with VLookup?

JohnSlider

New Member
Joined
Nov 23, 2015
Messages
41
Hi,

VLookup is probably not the right starting point, but it's the best way I can describe what I'm trying to do.

StoreY/NSalesFormula 1
Best BuyNo4No
TargetYes5Yes
TargetNo3Yes
Best BuyNo9No

<tbody>
</tbody>

Formula 1: Search for any "Yes" entries in column B, if at least 1 is present for the store listed in column A, then it enters "Yes" in column D on every row for that store.




StoreY/NSalesFormula 2
Best BuyNo44
TargetYes53
TargetNo33
Best BuyNo94

<tbody>
</tbody>

Formula 2: Search for the MIN entry in column C based on the store entered in column A, and return that MIN entry on every line for that store in column D.


What do you guys think? Doable?
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
In D2 enter and copy down:

=IF(AND(A2="best buy",B2="No"),"No",B2)

In E2 enter and copy down:

=MINIFS($C$2:$C$5,$A$2:$A$5,A2)

If MINIFS gives you the #NAME? error, control+shift+enter, not just enter, and copy down:

=MIN(IF($$A$2:$A$5=A2,C$2:$C$5))

Or just enter and copy down:

=AGGREGATE(15,6,$C$2:$C$5/($A$2:$A$5=A2),1)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

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