• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Help with a VLOOKUP - INDEX-MATCH approach|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Help with a VLOOKUP - INDEX-MATCH approach|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Help with a VLOOKUP - INDEX-MATCH a…
sp_PrintTopic sp_TopicIcon
Help with a VLOOKUP - INDEX-MATCH approach
Avatar
Gabriel Laforce

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
April 16, 2019
sp_UserOfflineSmall Offline
1
April 25, 2019 - 12:18 am
sp_Permalink sp_Print

Hello,

This is my first post, so let me know if I did not follow a forum rule properly.

I'm trying to figure out how to build a formula to do the following. I'm getting a bit lost with the approach, should it be VLOOKUPs with IFS, or a simple IF or an INDEX/MATCH with something else or something entirely different.

I need to look in a list where a product can be found under one or more codes. I need to know if the product I'm looking for is found under a specific code in the list. If not I need an error message saying "Not found". However if it's found I need a simple "OK" or maybe even bring back the code itself message.

Example: Is "ProLiant DL380 G5" found in the list under C1 code?

My list is a master list where it was decided which product should be associated to which code and it can be a normal behavior that a specific product is under two different codes.

Thank you in advance

sp_AnswersTopicSeeAnswer See Answer
Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 873
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
2
April 25, 2019 - 6:32 am
sp_Permalink sp_Print

Hello,

If it is just a simple check like you describe then it is easiest to use DGET function. See attached file for an example.

Avatar
Gabriel Laforce

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
April 16, 2019
sp_UserOfflineSmall Offline
3
April 26, 2019 - 5:27 am
sp_Permalink sp_Print

Hi Anders,

 

Thank you for replying on this issue, your time is appreciated. Now that I understand how DGET works. I'm struggling to get this copied to a list where we have multiple Products entries each with a code. How would I go about applying this formula to each row?

 

My challenge is that I have over 80k lines that I have to apply this formula.

=IF(ISERR(DGET(A3:B20,"Code",I7:J9)),"Not found","OK")

 

I've uploaded your file with a clearer reality of what I'm facing (added lines in orange).

 

Regards

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 873
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
4
April 26, 2019 - 3:55 pm
sp_Permalink sp_Print

Hello Gabriel,

There is no file.

It would be good if you can upload a sample file showing how you want the results to be presented.

Avatar
Gabriel Laforce

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
April 16, 2019
sp_UserOfflineSmall Offline
5
April 26, 2019 - 10:56 pm
sp_Permalink sp_Print

yeah sorry about the missing file, here it is. I also added 2 more worksheets which are showing the actual reality of how the data is formatted and setup. I hope it will be clear enough.

 

Regards

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 873
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
6
April 27, 2019 - 8:27 am
sp_Permalink sp_Print

Hello,

I am sorry, I don't understand what you are trying to get from that data.

Anyway, DGET function is just a lookup function for one or several rows, each row is equal to an AND function. If you want a validation check for each and every row in your list, then either use INDEX & MATCH or VLOOKUP with some helper columns.

Check this article to get some ideas of how to build your formula.
https://www.myonlinetraininghu.....o-criteria

sp_AnswersTopicAnswer
Answers Post
sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Sherry Fox, Cassie Bernier
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 215
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Abisola Ogundele
MARTYN STERRY
Rahim Lakhani
Ngoc Qui Nguyen
Clement Mansfield
Rose .
Bindu Menon
Baruch Zemer
Purple RainbowBenefactor
MOTH Junkie
Forum Stats:
Groups: 3
Forums: 24
Topics: 6350
Posts: 27773

 

Member Stats:
Guest Posters: 49
Members: 32317
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.