How to get data out of it?

Ahmed Fawad

New Member
Joined
Mar 1, 2011
Messages
39
Office Version
  1. 2016
Platform
  1. Windows
-9dqoqrEl2IV0kWvBTe4JwKsWUDx7U0zvW_GddXxRV68VS-EIZ15qJCX-hCZTX6Dkr55t8QoBEdoJpVMREUvx4DZyg=s512


from this data:
I need to work out is....
1. if i enter Product code it search out the min price against that code in column 2 its i have done by formula MIN(IF) bla bla

2. Now the next is ... i need to have if i enter product code ...

first it get the min price against product # then show the order ref. and order date in same row...

if anyone can help with this?


AFB
 

Some videos you may like

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
Try:

=INDEX(C2:C13,MATCH(MIN(IF(A2:A13=E1,B2:B13)),IF(A2:A13=E1,B2:B13),FALSE))

=INDEX(D2:D13,MATCH(MIN(IF(A2:A13=E1,B2:B13)),IF(A2:A13=E1,B2:B13),FALSE))

confirmed with Ctrl+Shift+Enter.
 

Ahmed Fawad

New Member
Joined
Mar 1, 2011
Messages
39
Office Version
  1. 2016
Platform
  1. Windows

ADVERTISEMENT

Try:

=INDEX(C2:C13,MATCH(MIN(IF(A2:A13=E1,B2:B13)),IF(A2:A13=E1,B2:B13),FALSE))

=INDEX(D2:D13,MATCH(MIN(IF(A2:A13=E1,B2:B13)),IF(A2:A13=E1,B2:B13),FALSE))

confirmed with Ctrl+Shift+Enter.

Not working.....

Too few arguments for this function. :(
 

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
The formula works perfectly for me. Is part of the formula highlighted when you get the error?
 

Ahmed Fawad

New Member
Joined
Mar 1, 2011
Messages
39
Office Version
  1. 2016
Platform
  1. Windows
CytRsGJcOdtenXapjmek9sNQUT6EYznQZOA2wfali0_s7BD78v7UUh9p0u-M4DeJ4IkJQSKxffMUQJE0AkFaPjHSGA=s512


I don't see error highlight.... if u can help with this...


AFB
 

Haseeb Avarakkan

Well-known Member
Joined
Sep 28, 2010
Messages
902
Office Version
  1. 365
Platform
  1. Windows
Hello, Try,

<b>Excel 2007</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F</th><th>G</th><th>H</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style="font-weight: bold;text-align: center;;">Product</td><td style="font-weight: bold;text-align: center;;">Price</td><td style="font-weight: bold;text-align: center;;">Order #</td><td style="font-weight: bold;text-align: center;;">Order Date</td><td style="text-align: right;;"></td><td style="font-weight: bold;text-align: center;;">Lookup Product</td><td style="text-align: right;;">12</td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: right;;">12</td><td style="text-align: right;;">128</td><td style="text-align: right;;">54</td><td style="text-align: right;;">10-Jan-10</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: right;;">15</td><td style="text-align: right;;">256</td><td style="text-align: right;;">57</td><td style="text-align: right;;">11-Jan-10</td><td style="text-align: right;;"></td><td style="font-weight: bold;text-align: center;;">MIN Price</td><td style="font-weight: bold;text-align: center;;">Order #</td><td style="font-weight: bold;text-align: center;;">Order Date</td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: right;;">18</td><td style="text-align: right;;">126</td><td style="text-align: right;;">59</td><td style="text-align: right;;">25-May-10</td><td style="text-align: right;;"></td><td style="text-align: right;;">110</td><td style="text-align: right;;">57</td><td style="text-align: right;;">2-Jan-10</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;">15</td><td style="text-align: right;;">244</td><td style="text-align: right;;">50</td><td style="text-align: right;;">16-Apr-10</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="text-align: right;;">16</td><td style="text-align: right;;">269</td><td style="text-align: right;;">67</td><td style="text-align: right;;">9-Feb-10</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style="text-align: right;;">17</td><td style="text-align: right;;">258</td><td style="text-align: right;;">94</td><td style="text-align: right;;">6-Mar-10</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style="text-align: right;;">12</td><td style="text-align: right;;">110</td><td style="text-align: right;;">57</td><td style="text-align: right;;">2-Jan-10</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">9</td><td style="text-align: right;;">15</td><td style="text-align: right;;">159</td><td style="text-align: right;;">44</td><td style="text-align: right;;">3-Apr-10</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">10</td><td style="text-align: right;;">10</td><td style="text-align: right;;">147</td><td style="text-align: right;;">42</td><td style="text-align: right;;">13-Mar-10</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">11</td><td style="text-align: right;;">11</td><td style="text-align: right;;">156</td><td style="text-align: right;;">27</td><td style="text-align: right;;">10-Jun-10</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">12</td><td style="text-align: right;;">10</td><td style="text-align: right;;">249</td><td style="text-align: right;;">28</td><td style="text-align: right;;">5-Jun-10</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">13</td><td style="text-align: right;;">13</td><td style="text-align: right;;">198</td><td style="text-align: right;;">34</td><td style="text-align: right;;">8-Feb-10</td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">Sheet1</p><br /><br /><table width="85%" cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Array Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">F4</th><td style="text-align:left">{=MIN(<font color="Blue">IF(<font color="Red">A2:A13=G1,B2:B13</font>)</font>)}</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">G4</th><td style="text-align:left">{=IFERROR(<font color="Blue">INDEX(<font color="Red">C$2:C$13,MATCH(<font color="Green">1,IF(<font color="Purple">$A$2:$A$13=$G$1,IF(<font color="Teal">$B$2:$B$13=$F4,1</font>)</font>),0</font>)</font>),""</font>)}</td></tr><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">H4</th><td style="text-align:left">{=IFERROR(<font color="Blue">INDEX(<font color="Red">D$2:D$13,MATCH(<font color="Green">1,IF(<font color="Purple">$A$2:$A$13=$G$1,IF(<font color="Teal">$B$2:$B$13=$F4,1</font>)</font>),0</font>)</font>),""</font>)}</td></tr></tbody></table><b>Entered with Ctrl+Shift+Enter.</b> If entered correctly, Excel will surround with curly braces {}.
<b>Note: Do not try and enter the {} manually yourself</b></td></tr></table><br />
 

Watch MrExcel Video

Forum statistics

Threads
1,122,215
Messages
5,594,883
Members
413,947
Latest member
gizmolucy

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
Top