# Text function issue

#### Mchllwoods

##### New Member
I'm making a grocery list in Excel. One sheet has my list then next sheet has a listing of my local grocery stores with items, prices and weight.

I want to search thru the items against what's in my grocery list for the lowest price.

I only have Microsoft Excel 2010. I'm trying to use MIN and SEARCH functions within the SUMIFS function. They r not working. I'm also trying to use AGGREGATE instead of SUMIFS but that's not working either.

What am I doing wrong?

### Excel Facts

Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Pl upload a sample screen shot showing data and the expected results with manual calculations.

"This is my list. I am going to buy everything from one store. Which store?"
or
"This is my list. I am going to go to many stores. Which items am I going to buy from which store?"

Which items I'm going to buy from which store.

I can't send a screenshot. Info too large. If u have OneDrive or GoogleDrive I might be able 2 send a sample that way. This is my first time using Mr. Excel so I'm not too familiar w/ it.

You could upload a copy of your file to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. If the workbook contains confidential information, you could replace it with generic data.

Try this Array formula in sheet List, cell G4

Sheet List

 Cell Array Formula G4 {=IF(IFERROR(BUSCARV("*"&A4&"*",storesTbl[Item],1,0),0)=0,0,SUMPRODUCT(MIN(IFERROR(IFERROR(SEARCH(A4,storesTbl[Item]),0)/IFERROR(SEARCH(A4,storesTbl[Item]),0),99999999)*(storesTbl[Price]))))}

<tbody>
</tbody>

Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>

Copy the formula down.

where did the BUSCARV function come from cause basic Excel doesn't have it??? Is that a macro? I don't know macros well enough 2 use them.

BUSCARV() is a VLOOKUP

Replies
20
Views
613
Replies
6
Views
256
Replies
0
Views
63
Replies
13
Views
275
Replies
2
Views
193

1,203,388
Messages
6,055,126
Members
444,763
Latest member
Jaapaap

### 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.

### Which adblocker are you using?

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

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