PRICE SEARCH using KEY words and EXACT

makinmomb

Active Member
Joined
Dec 23, 2013
Messages
401
I have following data on SHEET1


TEXT CODEDESCRIPTIONCODEPRICE
431 STAR SHOWER SET 101.000.239,480
431 CARINASHOWER SET 101.000.249,605
461 STAR SHOWER SET 101.000.2118,125
461 CARINASHOWER SET 101.000.2218,325

<colgroup><col width="79" style="width: 59pt; mso-width-source: userset; mso-width-alt: 2889;"><colgroup><col width="94" style="width: 71pt; mso-width-source: userset; mso-width-alt: 3437;"><colgroup><col width="61" style="width: 46pt; mso-width-source: userset; mso-width-alt: 2230;"><colgroup><col width="46" style="width: 35pt; mso-width-source: userset; mso-width-alt: 1682;"><tbody>
</tbody>

I have following on SHEET2 as my results sheet


ENTER KEY WORD
TEXT CODEDESCRIPTIONCODEPRICE

<colgroup><col width="79" style="width: 59pt; mso-width-source: userset; mso-width-alt: 2889;"><colgroup><col width="94" style="width: 71pt; mso-width-source: userset; mso-width-alt: 3437;"><colgroup><col width="61" style="width: 46pt; mso-width-source: userset; mso-width-alt: 2230;"><colgroup><col width="46" style="width: 35pt; mso-width-source: userset; mso-width-alt: 1682;"><tbody>
</tbody>

What is the formula on cell A4 to display results depending on input on cell C2

Notes : If I type 431 should dispay as follows , can the formula also handle exact match if type not 431 instead 431 STAR


TEXT CODEDESCRIPTIONCODEPRICE
431 STAR SHOWER SET 101.000.239,480
431 CARINASHOWER SET 101.000.249,605
<colgroup><col width="79" style="width: 59pt; mso-width-source: userset; mso-width-alt: 2889;"> <col width="94" style="width: 71pt; mso-width-source: userset; mso-width-alt: 3437;"> <col width="61" style="width: 46pt; mso-width-source: userset; mso-width-alt: 2230;"> <col width="46" style="width: 35pt; mso-width-source: userset; mso-width-alt: 1682;"> <tbody> </tbody>
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
SHEET2 (What is wrong with "Sheet2"?:cool:)

F4, control+shift+enter, not just enter, and copy down:
Rich (BB code):
=IFERROR(SMALL(IF(SHEET1!$A$2:$A$5=$C$2,
    ROW(SHEET1!$A$2:$A$5)-ROW(SHEET1!$A$2)+1),ROWS($F$4:F4)),"")

A4, just enter, copy across to D4, and down:
Rich (BB code):
=IF($F4="","",INDEX(SHEET1!A$2:A$5,$F4))
 
Upvote 0

makinmomb

Active Member
Joined
Dec 23, 2013
Messages
401
SHEET2 (What is wrong with "Sheet2"?:cool:)

F4, control+shift+enter, not just enter, and copy down:
Rich (BB code):
=IFERROR(SMALL(IF(SHEET1!$A$2:$A$5=$C$2,
    ROW(SHEET1!$A$2:$A$5)-ROW(SHEET1!$A$2)+1),ROWS($F$4:F4)),"")

A4, just enter, copy across to D4, and down:
Rich (BB code):
=IF($F4="","",INDEX(SHEET1!A$2:A$5,$F4))


XXX

Ouch , almost there , did you mean I write two formulas , one on cell f4 and one on cell A4, slightly not getting , the input is on cell C1 and C2

Please re assist , I am already enjoying the answer of tile program with answer, MR EXCEL sight has definitely changed my year 2014, I wish I knew of your site earlier, WOW team

=IFERROR(INDEX(data,SMALL(IF(INDEX(data,,MATCH($B$1,Sheet1!$A$1:$L$1,0))=$A$1,IF(INDEX(data,,MATCH($B$2,Sheet1!$A$1:$L$1,0))=$A$2,
ROW(data)-ROW(INDEX(data,1,1))+1)),ROWS($A$5:$A5)),COLUMNS($A$5:A$5)),"")
 
Upvote 0

makinmomb

Active Member
Joined
Dec 23, 2013
Messages
401
Input at cell C1 and NOT C2 though I edited the formula,
not working , I am so curious to see the working result, not sure where I am wrong
 
Upvote 0

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
ADVERTISEMENT
Input at cell C1 and NOT C2 though I edited the formula,
not working , I am so curious to see the working result, not sure where I am wrong

Why not follow the instructions as given?
 
Upvote 0

makinmomb

Active Member
Joined
Dec 23, 2013
Messages
401
Why not follow the instructions as given?

I am trying to follow your exact instructions

it gives me a wrong result

ENTER KEY WORD431
TEXT CODEDESCRIPTIONCODEPRICE
461 STARSHOWER SET101.000.21181250

<colgroup><col width="79" style="width: 59pt; mso-width-source: userset; mso-width-alt: 2889;"><colgroup><col width="94" style="width: 71pt; mso-width-source: userset; mso-width-alt: 3437;"><colgroup><col width="61" style="width: 46pt; mso-width-source: userset; mso-width-alt: 2230;"><colgroup><col width="46" style="width: 35pt; mso-width-source: userset; mso-width-alt: 1682;"><colgroup><col width="55" style="width: 41pt; mso-width-source: userset; mso-width-alt: 2011;"><colgroup><col width="14" style="width: 11pt; mso-width-source: userset; mso-width-alt: 512;"><tbody>
</tbody>

the formula on cell a4 is =IF($F4="","",INDEX(Sheet1!A$2:A$5,$F4))
the formula on cell a4 is =IFERROR(SMALL(IF(Sheet1!$A$2:$A$5=$C$1,ROW(Sheet1!$A$2:$A$5)-ROW(Sheet1!$A$2)+1),ROWS($F$4:F4)),"")
 
Upvote 0

makinmomb

Active Member
Joined
Dec 23, 2013
Messages
401
ADVERTISEMENT
the formula on cell a4 is =IF($F4="","",INDEX(Sheet1!A$2:A$5,$F4))
the formula on cell F4 is =IFERROR(SMALL(IF(Sheet1!$A$2:$A$5=$C$1,ROW(Sheet1!$A$2:$A$5)-ROW(Sheet1!$A$2)+1),ROWS($F$4:F4)),"")
 
Upvote 0

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
the formula on cell a4 is =IF($F4="","",INDEX(Sheet1!A$2:A$5,$F4))
the formula on cell F4 is =IFERROR(SMALL(IF(Sheet1!$A$2:$A$5=$C$1,ROW(Sheet1!$A$2:$A$5)-ROW(Sheet1!$A$2)+1),ROWS($F$4:F4)),"")

The one in F4 needs to be confirmed with control+shift+enter and copied down.

Control+shift+enter means: Press down the control and the shift keys at the same time while you hit the enter key.
 
Upvote 0

makinmomb

Active Member
Joined
Dec 23, 2013
Messages
401
The one in F4 needs to be confirmed with control+shift+enter and copied down.

Control+shift+enter means: Press down the control and the shift keys at the same time while you hit the enter key.

Is it correct that when I press CTRL SHIFT ENTER the formula than closes with signs { } , almost there , oops
 
Upvote 0

makinmomb

Active Member
Joined
Dec 23, 2013
Messages
401
Is it correct that when I press CTRL SHIFT ENTER the formula than closes with signs { } , almost there , oops

the formula thus now reads as follows with the CTRL SHIFT ENTER used

a4 = =IF($F4="","",INDEX(Sheet1!A$2:A$5,$F4))
f4 = {=IFERROR(SMALL(IF(Sheet1!$A$2:$A$5=$C$1,ROW(Sheet1!$A$2:$A$5)-ROW(Sheet1!$A$2)+1),ROWS($F$4:F4)),"")}

The result being blank as

ENTER KEY WORD461
TEXT CODEDESCRIPTIONCODEPRICE
<colgroup><col width="79" style="width: 59pt; mso-width-source: userset; mso-width-alt: 2889;"> <col width="94" style="width: 71pt; mso-width-source: userset; mso-width-alt: 3437;"> <col width="61" style="width: 46pt; mso-width-source: userset; mso-width-alt: 2230;"> <col width="46" style="width: 35pt; mso-width-source: userset; mso-width-alt: 1682;"> <col width="55" style="width: 41pt; mso-width-source: userset; mso-width-alt: 2011;"> <col width="14" style="width: 11pt; mso-width-source: userset; mso-width-alt: 512;"> <tbody> </tbody>
 
Upvote 0

Forum statistics

Threads
1,195,598
Messages
6,010,642
Members
441,558
Latest member
lambierules

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