• 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
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Need some help in mastering performing a case-sensitive lookup and mastering nested IF formulas inside Vlookup|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Need some help in mastering performing a case-sensitive lookup and mastering nested IF formulas inside Vlookup|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…Need some help in mastering perfor…
sp_PrintTopic sp_TopicIcon
Need some help in mastering performing a case-sensitive lookup and mastering nested IF formulas inside Vlookup
Avatar
MITUL PARIKH
Member
Members
Level 0
Forum Posts: 68
Member Since:
December 8, 2017
sp_UserOfflineSmall Offline
1
March 4, 2018 - 2:05 am
sp_Permalink sp_Print

  Hello friend;

    Good Morning

   Worksheet name : case sensitive  I need some help in mastering  performing a case-sensitive lookup , am getting wrong result for 2 array formulas, after entering  array formula both times,  hold Ctrl, shift, then,  hit enter at same time.  
 

  

  Worksheet name : multiple tables  Also, like to master  how to write 2 or 3 nested IF formulas inside 1 Vlookup for Sales Rep -  Alicia - Eric.

  Thank you very much.

   Have a nice day.

 

  

sp_AnswersTopicSeeAnswer See Answer
Avatar
SunnyKow
Puchong, Malaysia

VIP
Members


Trusted Members
Level 8
Forum Posts: 1432
Member Since:
June 25, 2016
sp_UserOfflineSmall Offline
2
March 5, 2018 - 11:14 am
sp_Permalink sp_Print

Hi Mitul

CASE-SENSITIVE LOOKUP

If you look at your ARRAY formula in cell B10 =INDEX(NUMBER,MATCH(TRUE,EXACT(Value,NAME),0)) what is Value referring to?

The actual formula should be =INDEX(NUMBER,MATCH(TRUE,EXACT(B9,NAME),0))

As for your other LOOKUP formulas, you are "lucky" that they gave the correct answer due to the sorting sequence of the lookup range.

Try changing cell B6 to DOG (instead of dog) and it will not give you the correct answer (300 instead of 700).

MULTIPLE TABLES

I suggest you rename your tables properly so that they can be easily referred to. Example Table1, Table2, etc

Then in cell D2 you can enter =VLOOKUP(C2,IF(B2<3,Table1,IF(B2<=6,Table2,IF(B2<=9,Table3,Table4))),2,TRUE)

Hope this helps.

Sunny

sp_AnswersTopicAnswer
Answers Post
Avatar
clark shao
Member
Members
Level 0
Forum Posts: 44
Member Since:
November 19, 2017
sp_UserOfflineSmall Offline
3
March 5, 2018 - 5:49 pm
sp_Permalink sp_Print

MULTIPLE TABLES

D2=VLOOKUP(C2,OFFSET(G$1:H$12,,LOOKUP(B2,{0,0;3,3;7,6;11,9})),2)

Please have a try.

Clark

Avatar
MITUL PARIKH
Member
Members
Level 0
Forum Posts: 68
Member Since:
December 8, 2017
sp_UserOfflineSmall Offline
4
March 6, 2018 - 11:38 pm
sp_Permalink sp_Print

Hi Clark;

     Good Morning

      I tried below formula  in Multiple tables , It worked perfectly.  I appreciate your help.   Thank you very much.Smile

         I am still learning both OFFSET and LOOKUP  formulas,   Can you Please explain me - In worksheet attached below,   <3 Years Tenure Table range
         is G1 : H9, but in formula  it says , OFFSET(G$1 :H$12), still why it worked perfectly?   I like to learn in depth, how OFFSET formula works and also like
           to learn  in depth how LOOKUP formula works.  Please explain me  below formula.

             Thank you very much.       

              Have a great day   

MULTIPLE TABLES

D2=VLOOKUP(C2,OFFSET(G$1:H$12,,LOOKUP(B2,{0,0;3,3;7,6;11,9})),2)

Please have a try.

               

Avatar
MITUL PARIKH
Member
Members
Level 0
Forum Posts: 68
Member Since:
December 8, 2017
sp_UserOfflineSmall Offline
5
March 6, 2018 - 11:39 pm
sp_Permalink sp_Print

SunnyKow said
Hi Mitul

CASE-SENSITIVE LOOKUP

If you look at your ARRAY formula in cell B10 =INDEX(NUMBER,MATCH(TRUE,EXACT(Value,NAME),0)) what is Value referring to?

The actual formula should be =INDEX(NUMBER,MATCH(TRUE,EXACT(B9,NAME),0))

As for your other LOOKUP formulas, you are "lucky" that they gave the correct answer due to the sorting sequence of the lookup range.

Try changing cell B6 to DOG (instead of dog) and it will not give you the correct answer (300 instead of 700).

MULTIPLE TABLES

I suggest you rename your tables properly so that they can be easily referred to. Example Table1, Table2, etc

Then in cell D2 you can enter =VLOOKUP(C2,IF(B2<3,Table1,IF(B2<=6,Table2,IF(B2<=9,Table3,Table4))),2,TRUE)

Hope this helps.

Sunny  

Avatar
MITUL PARIKH
Member
Members
Level 0
Forum Posts: 68
Member Since:
December 8, 2017
sp_UserOfflineSmall Offline
6
March 7, 2018 - 1:10 am
sp_Permalink sp_Print

Hello  Sunny;

    This is Mitul.  

  Good Morning;

  Both formulas (Case Sensitive AND  Multiple Tables worked perfectly)  

  I appreciate it.  Thank you very much.   

Avatar
clark shao
Member
Members
Level 0
Forum Posts: 44
Member Since:
November 19, 2017
sp_UserOfflineSmall Offline
7
March 7, 2018 - 10:44 am
sp_Permalink sp_Print sp_EditHistory

Hi Mitul,

The first table [

I will show you a simple example of Lookup function.

Lookup value is 6 in cell K14, the table range is J18:K21. The formula =LOOKUP(K14,J18:K21) works as follows:

Lookup function lookup the value of K14(6) in the first column of the table J18:K21, the largest number in the first column which is smaller or equal to 6 is 3, and 3 is the second number in the first column. Lookup function returns the second value of the second column, result is 3. 

=LOOKUP(10,J18:K21) will retun 6, because in the first column, the larges number which is smaller or equal to 10 is 7 which is the third number in first column, so Lookup finally returns the third number in second folumn 6.

you can try more examples.

=LOOKUP(11,J18:K21)=9

=LOOKUP(13,J18:K21)=9

Avatar
MITUL PARIKH
Member
Members
Level 0
Forum Posts: 68
Member Since:
December 8, 2017
sp_UserOfflineSmall Offline
8
March 7, 2018 - 10:36 pm
sp_Permalink sp_Print

    Hello Clark;

        This is Mitul.

              Good Morning;
        

        Thank you for explanation of LOOKUP formula. Can you Please explain me "OFFSET"  function?

           Thank you.  Have a nice day.

Avatar
clark shao
Member
Members
Level 0
Forum Posts: 44
Member Since:
November 19, 2017
sp_UserOfflineSmall Offline
9
March 8, 2018 - 12:21 pm
sp_Permalink sp_Print

Offset is more complicated.

OFFSET(reference, rows, cols, [height], [width])

I will show you some examples.

=OFFSET(A1,0,0) refers to cell A1, it means set cell A1 as base, offset 0 row down and offset 0 column to the right.

=OFFSET(A1,3,4) refers to cell E4, it means set cell A1 as base, offset 3 row down and offset 4 columns to the right.

=OFFSET(A1:B5,0,4) refers to range E1:F5, it means set A1:B5 as base, offset 0 row down and offset 4 columns to the right.

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 870
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
10
March 9, 2018 - 8:05 am
sp_Permalink sp_Print

Hello,

There is a big treasure hidden in this site which we refer to as MOTH, that is all the rich and excellent explanations of Excels functions and you find them in the blog section.

More about OFFSET --> https://www.myonlinetraininghu.....-explained

Br,
Anders

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Mia Nielsen, Jeff Krueger, Shanna Henseler
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Ray-Yu Yang
George Shihadeh
Naomi Rumble
Uwe von Gostomski
Jonathan Jones
drsven
Forum Stats:
Groups: 3
Forums: 24
Topics: 6212
Posts: 27236

 

Member Stats:
Guest Posters: 49
Members: 31889
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.