• 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

How to used exact match in this formula please|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / How to used exact match in this formula please|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…How to used exact match in this for…
sp_PrintTopic sp_TopicIcon
How to used exact match in this formula please
Avatar
Matthew Tucker
Member
Members
Level 0
Forum Posts: 11
Member Since:
January 20, 2018
sp_UserOfflineSmall Offline
1
February 4, 2019 - 12:31 pm
sp_Permalink sp_Print

I have a spreadsheet that uses this formula, that returns results based on a two digit code in a row in the source sheet.
The two digit code can have data like GD or Gd which means different things, when I run the code it does not differentiate between the two and places the data GD and Gd into the samesheet rather than one for GD and one for Gd.

 

Below is the code {=IF(COUNTIF('Data 2019'!$A$1:$A$517,$A$2)<ROWS($C$1:C1),"",INDEX('Data 2019'!$C$1:$C$517,SMALL(IF('Data 2019'!$A$1:$A$517=$A$2,ROW('Data 2019'!$A$1:$A$517)),ROW('Data 2019'!B1))))}

I know that I will need to put an exact command somewhere but not sure.

=$A$2,ROW('Data 2019'!$A$1:$A$517)),ROW('Data 2019'!B1))))} is where it looks for the GD or Gd.

 

Thank you for your help in advance.

sp_AnswersTopicSeeAnswer See Answer
Avatar
Velouria
London or thereabouts
Moderator
Members


Trusted Members

Moderators
Level 4
Forum Posts: 615
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
2
February 5, 2019 - 2:16 am
sp_Permalink sp_Print

You'd need:

 

IF(EXACT('Data 2019'!$A$1:$A$517,$A$2)

 

instead of:

 

IF('Data 2019'!$A$1:$A$517=$A$2

 

Ideally, you'd also use SUMPRODUCT and EXACT instead of the COUNTIF, or use an IFERROR.

sp_AnswersTopicAnswer
Answers Post
Avatar
Matthew Tucker
Member
Members
Level 0
Forum Posts: 11
Member Since:
January 20, 2018
sp_UserOfflineSmall Offline
3
February 5, 2019 - 5:35 pm
sp_Permalink sp_Print sp_EditHistory

Thank you Velouria, for answering the question.
I never wrote the formula, could you explain what the difference would be using SUMPRODUCT or IFERROR, and what the outcomes would be. 🙂

And Also I am now getting the following error "Too Few arguments" when I have entered the formula
{=IF(COUNTIF('Data 2019'!$A$1:$A$517,$A$2)<ROWS($B$1:B1),"",INDEX('Data 2019'!$B$1:$B$517,SMALL(IF(EXACT('Data 2019'!$A$1:$A$517=$A$2,ROW('Data 2019'!$A$1:$A$517)),ROW('Data 2019'!A1)))))}

Sorry for all the questions this one is way to complicated for me. Happy to attach a copy of the spreadsheet

Avatar
Velouria
London or thereabouts
Moderator
Members


Trusted Members

Moderators
Level 4
Forum Posts: 615
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
4
February 5, 2019 - 6:27 pm
sp_Permalink sp_Print sp_EditHistory

That's not quite what I suggested. It should be this:

 

IF(EXACT('Data 2019'!$A$1:$A$517,$A$2)

 

not this:

 

IF(EXACT('Data 2019'!$A$1:$A$517=$A$2

 

A sample workbook would certainly make life simpler too. 🙂

Avatar
Matthew Tucker
Member
Members
Level 0
Forum Posts: 11
Member Since:
January 20, 2018
sp_UserOfflineSmall Offline
5
February 6, 2019 - 9:11 pm
sp_Permalink sp_Print

Awesome, this has worked so well, I really am thankful for your help.

I should acutally read what is writtens 🙂

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Andy Kirby, Scott Miller, Roy Lutke, Jeff Krueger, Ivica Cvetkovski
Guest(s) 7
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.