Skip 'blank' results in a Vlookup

bec711

New Member
Joined
Oct 18, 2017
Messages
3
Hi There!
I am hoping you can help, I am looking for a way to make my formula ignore blank results and only show results that contain text.

My Creditors report is split by what the supplier does for us, and there are 4 categories
1. Construction
2. Supplier
3. Consultant
4. Land

I am trying to generate in column E, the supplier name if they are a ‘construction’ supplier, dictated by column A in the tab names ‘Supplier Listing’.
This works well for the ‘Construction’ creditors in rows 4 – 24 of the creditors report, but when I get down to ‘Suppliers’ (rows 30 – 132) I am left with the blank cells in rows 40 - 55 as my formula asks it to return blank if not true.

=IF('Supplier Listing'!A2=Creditors!B4,'Supplier Listing'!B2, "")

Is there a way I can eliminate the blank cells? Can I make the search skip to the text I am looking for and start the lookup once it has automatically found the first cell containing ‘construction’ or ‘supplier’?

The list of suppliers on the supplier listing tab will change each week, so I want this lookup to be automatic – not to use index/match to tell it which row to start from as it will not be the same each week as new suppliers are added.
I really appreciate your help! =)

(Please advise if i can send my file for you to look at - I cant seem to put any pics on here)
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
instead of lookup you could use a macro to run down the column, if it finds a blank do nothing and move to next cell down, if not blank then supplier Listing!Cells(whatever)
 
Upvote 0
namecatgoryhelper1helper2helper3helper4namescategory
name1construction21name1constructionname1construction
name29992name6constructionname2supplier
name39993name13constructionname3consultant
name449994name18constructionname4land
name59995name23constructionname5
name6construction76name28constructionname6construction
name79997name7supplier
name889998name8consultant
name99999name9land
name1099910name10
name1199911name11
name1299912name12
name13construction1413name13construction
name1499914name14supplier
name1599915name15consultant
name1699916name16land
name1799917name17
name18construction1918name18construction
name1999919name19supplier
name2099920name20consultant
name2199921name21land
name2299922name22
name23construction2423name23construction
name2499924name24supplier
name2599925name25consultant
name2699926name26land
name2799927name27
name28construction2928name28construction
name2999929name29supplier
name3099930name30consultant
name3199931
name3299932
name3399933col Ncol O
name3499934
name3599935
helper columns, which can be hidden, make this an easy task
col B is blank unless construction is found
you can add and delete names in col N
the formulas will still return only the construction rows
the small function pulls out the row numbers of "constructions
and offset match makes you a neat list
if this approach is of interest I will post the formulas

<colgroup><col><col><col span="7"><col><col span="7"></colgroup><tbody>
</tbody>
 
Upvote 0
namecatgoryhelper1helper2helper3helper4namescategory
name1construction21name1constructionname1construction
name29992name6constructionname2supplier
name39993name13constructionname3consultant
name449994name18constructionname4land
name59995name23constructionname5
name6construction76name28constructionname6construction
name79997name7supplier
name889998name8consultant
name99999name9land
name1099910name10
name1199911name11
name1299912name12
name13construction1413name13construction
name1499914name14supplier
name1599915name15consultant
name1699916name16land
name1799917name17
name18construction1918name18construction
name1999919name19supplier
name2099920name20consultant
name2199921name21land
name2299922name22
name23construction2423name23construction
name2499924name24supplier
name2599925name25consultant
name2699926name26land
name2799927name27
name28construction2928name28construction
name2999929name29supplier
name3099930name30consultant
name3199931
name3299932
name3399933col Ncol O
name3499934
name3599935
helper columns, which can be hidden, make this an easy task
col B is blank unless construction is found
you can add and delete names in col N
the formulas will still return only the construction rows
the small function pulls out the row numbers of "constructions
and offset match makes you a neat list
if this approach is of interest I will post the formulas

<tbody>
</tbody>



I would love those formulas please!
Thank you so much for taking the time, you're a gem!!!
 
Upvote 0

Forum statistics

Threads
1,215,453
Messages
6,124,930
Members
449,195
Latest member
Stevenciu

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