How to write an excel index match formula with varying criteria?

Kelmike

New Member
Joined
Aug 2, 2014
Messages
11
Good day,

I have this workbook with 3 sheets (Data, 1st and 2nd). In Data, i have a table with index match formulas to auto populate the values
of each HBins (1~12). So far it was working for most of the time but then I found out that some search pattern I'm using were changing,
hence, instead of returning the correct value, it just shows 0 since my search string does not match anymore. Is there a way I can make my
formula adapt to this varying search patterns? Im thinking something like an OR function. Would that be possible?

Here are samples of the different search strings for HBIN 1. This is almost the same for the other HBINs, the number just change:

Enter Good Bin Qty
Good Bin 1
Hardbin 1
Hardbin1
HBin1

My current pattern will just match "Enter BIN 1 Quantity" and ENTER BIN 1 QTY", but not "Enter BIN1 Quantity".

Appreciate the help you may extend, thanks a lot in advance.
ScreenHunter_8.jpg


ScreenHunter_9.jpg
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Assuming no duplicate bins, try

=SUM(SUMIFS('2nd'!$D:$D,'2nd'!$B:$B,{"BIN 1 Q*","BIN1 Q*"}))
 
Upvote 0
Hi arthurbr, I tried and it didn't work. So far I found no search string with 1 and "Q" together. Thanks for the time checking this though,appreciate it.
Must have missed one
Enter*BIN*1*Q*
 
Upvote 0
Enter*BIN*1*Q*
That wouldn't be able to differentiate between Bins 1, 10 to 19, 21, 31, etc

I don't think that any formula is going to catch all variations without becoming far more complicated than should be necessary, it would be better to use more consistent methods of data entry rather than use messy formulas.
 
Upvote 0
That wouldn't be able to differentiate between Bins 1, 10 to 19, 21, 31, etc

I don't think that any formula is going to catch all variations without becoming far more complicated than should be necessary, it would be better to use more consistent methods of data entry rather than use messy formulas.
Yeah I agree on you with that, but I guess that's not under control anymore :( . Thanks anyway for the time checking on this, appreciate it.
 
Upvote 0
That wouldn't be able to differentiate between Bins 1, 10 to 19, 21, 31, etc

I don't think that any formula is going to catch all variations without becoming far more complicated than should be necessary, it would be better to use more consistent methods of data entry rather than use messy formulas.
Assuming no duplicate bins, try

=SUM(SUMIFS('2nd'!$D:$D,'2nd'!$B:$B,{"BIN 1 Q*","BIN1 Q*"}))
hi jasonb75, that formula is returning 0 when I tried, thanks for checking on this though, appreciate it
 
Upvote 0
hi jasonb75, that formula is returning 0 when I tried, thanks for checking on this though, appreciate it
Hi jasonb75, i checked again your formula and adjust the search criteria based on the actual string and it worked! that's really awesome. Could you please explain how it's working? I never though the combination of sum and sumif will do the trick :)
 
Upvote 0

Forum statistics

Threads
1,223,954
Messages
6,175,601
Members
452,658
Latest member
GStorm

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