• 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
  • Login

Probably IF and OR function forrmula needed.|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Probably IF and OR function forrmula needed.|General Excel Questions & Answers|Excel Forum|My Online Training Hub

office scripts course

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
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…Probably IF and OR function forrmul…
sp_PrintTopic sp_TopicIcon
Probably IF and OR function forrmula needed.
Avatar
Bruno Hor

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
July 4, 2021
sp_UserOfflineSmall Offline
1
July 4, 2021 - 8:26 am
sp_Permalink sp_Print

A1 cell is "EUR", B1 cell is "Tax".
A2 cell is "150,00EUR", B2 cell is "18,50EUR"
A3 cell is "150,01EUR", B3 cell is "37,00EUR"
A4 cell is "1.000,00EUR", B4 cell is "37,00EUR"
A5 cell is "1.000,01EUR", B5 cell is "99,00EUR"

D1 cell is 607,25EUR.
F1 cell need to be my result cell for the bellow task...

I need to create a one long sausage Excel formula here, and I think that I am requiring the "IF and OR" nested function combination:

IF the price in D1 cell is lower or equal A2 cell, then the Tax will be B2 cell;
IF the price in D1 cell is equal or higher A3 cell, then the Tax will be B3 cell;
OR, IF the price in D1 cell is lower or equal A4 cell, then the Tax will be B4 cell (still a 37,00EUR value);
IF the price in D1 cell is equal or higher then A5 cell, then the Tax will be B5 cell.

I spend long time to figured out, but I obviously make somewhere serious mistake, cannot get it simply to work.
Please help and advice, this is for Up to date Microsoft Excel 2019 C2R on Windows 10...

Thank you in advance and best regards!

sp_AnswersTopicSeeAnswer See Answer
Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
July 4, 2021 - 9:56 am
sp_Permalink sp_Print

Hi Bruno,

Welcome to our forum! I did a tutorial on this just this week. Please watch the IF statement video here which explains that you should actually be using a lookup (VLOOKUP or XLOOKUP).

Hope that helps. If you're still stuck, come back and share your file so we can see what the issue is.

Mynda

sp_AnswersTopicAnswer
Answers Post
Avatar
Bruno Hor

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
July 4, 2021
sp_UserOfflineSmall Offline
3
July 4, 2021 - 10:18 am
sp_Permalink sp_Print

Thank you dear Mynda, and thank you for the welcoming!  🙂

O, that means that I did not even pick up the right formula, and I was sure that it is an IF, and or IF + OR mixture! 🙂

 

OK, I will most surely watch your recommended video, and try to fix things with VLOOKUP or XLOOKUP.

If I will not, I will please ask the assistance again here.

 

Once more thank you and best regards!

Avatar
Bruno Hor

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
July 4, 2021
sp_UserOfflineSmall Offline
4
July 4, 2021 - 12:29 pm
sp_Permalink sp_Print

Well, totally simple VLOOKUP do the all the magic trick here, and I cannot believe it,

that I did not get it before even by myself, and that I am using the completely wrong formula approach!

I am just reporting this now for helping others here on this great forum, because I have a bingo solution!  🙂

 

I also slightly change my table to be more a correct for getting the results from the VLOOKUP formula.

Now on this way, the VLOOKUP formula can even evaluate the table values bellow the initial set of 150,00EUR.

So now, the VLOOKUP formula can give me even a results when I have for e.g 1€ only, etc..:

 

A1 cell is "EUR", B1 cell is "Tax".
A2 cell is "0,1EUR"; B2 cell is "18,50EUR"
A3 cell is "150,00EUR", B3 cell is "18,50EUR"
A4 cell is "150,01EUR", B4 cell is "37,00EUR"
A5 cell is "1.000,00EUR", B5 cell is "37,00EUR"
A6 cell is "1.000,01EUR", B6 cell is "99,00EUR"

D1 cell is 607,25EUR.
F1 cell need to be my result cell for the bellow task...

 

And for the above given Table, the F1 cell VLOOKUP result is:

=VLOOKUP(D1;A1:B6;2)

 

Once more thank you for the correct hint formula, dear Mynda!

 

Till next time on this great forum, cheers to all here!  🙂

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4614
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
5
July 5, 2021 - 8:52 am
sp_Permalink sp_Print

Glad that did the trick, Bruno!

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Susan VanRiper, QSolutions Group
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
jaryszek: 183
Newest Members:
Herbie Key
Trevor Pindling
Stevan Kanjo
Erin Sheldon
Nikita Bhatia
Sheilah Taylor
Clare Webber
David Jenssen
Dominic Brosnahan
Young You
Forum Stats:
Groups: 3
Forums: 24
Topics: 6526
Posts: 28575

 

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

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel Office Scripts
  • 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

Sign up to our newsletter and join over 400,000
others who learn Excel and Power BI with us.

 

Company

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

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.