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

SUM IF cell B11 includes XXX|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / SUM IF cell B11 includes XXX|General Excel Questions & Answers|Excel Forum|My Online Training Hub

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…SUM IF cell B11 includes XXX
sp_PrintTopic sp_TopicIcon
SUM IF cell B11 includes XXX
Avatar
Wayne Troyer

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
January 21, 2023
sp_UserOfflineSmall Offline
1
January 21, 2023 - 7:12 am
sp_Permalink sp_Print

Can someone help me write a formula for cell D11 for the following scenario? (see attached pic for reference)
If serial number in B11 includes PGS (instead of WGS), the figure in D11 needs to be C11 * 11%. If the serial number in B11 is anything else (i.e. WGS or MGS), the figure in D11 needs to be C11 * 9.5%.Screenshot-82.pngImage Enlarger

sp_AnswersTopicSeeAnswer See Answer
Avatar
Riny van Eekelen
Örnsköldsvik, Sweden
Moderator
Members


Trusted Members

Moderators

Power BI
Level 0
Forum Posts: 384
Member Since:
January 31, 2022
sp_UserOfflineSmall Offline
2
January 23, 2023 - 12:03 am
sp_Permalink sp_Print

Hi Wayne,

That could be like this:

=C11*($D$9+ISNUMBER(FIND("PGS",B11))*1.5%)

I have attached a workbook with a working example so that you can see the formula at work.

The part FIND("PGS",B11) will see if the sub-string PGS exists in C11. If so, it returns a number, if not a value error.
Wrap it in ISNUMBER to turn that outcome into TRUE (=1) or FALSE (=0).

Put it all together. The formula takes the value of C11 and multiplies it by (9.5% [from D9] plus 1 x 1.5% or 0 x 1.5%), depending on if it found PGS or not.

Riny

Avatar
Wayne Troyer

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
January 21, 2023
sp_UserOfflineSmall Offline
3
January 24, 2023 - 1:34 am
sp_Permalink sp_Print

Thanks for your reply!
I copied and pasted that formula into Cell D11, and got an Err:508.
Instead of trying to get 9.5% from D9, is there a way to write that 9.5% into the formula? (Hope I'm making myself clear)Screenshot-83.pngImage Enlarger

sp_PlupAttachments Attachments
  • sp_PlupImage Screenshot-83.png (17 KB)
Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1463
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
4
January 24, 2023 - 6:23 am
sp_Permalink sp_Print

Hi Wayne,

What software are you using? Your screenshots don't look like Excel, this is an Excel forum.

Err:508 isn't an Excel error I am familiar with. It may be that the software you are using doesn't support the functions Riny has used.

Regards

Phil

Avatar
Velouria
London or thereabouts
Member
Members


Trusted Members
Level 4
Forum Posts: 574
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
5
January 24, 2023 - 8:45 pm
sp_Permalink sp_Print

That looks like OpenOffice to me, in which case try changing the comma to a semicolon:

=C11*($D$9+ISNUMBER(FIND("PGS";B11))*1.5%)

sp_AnswersTopicAnswer
Answers Post
Avatar
Wayne Troyer

Active Member
Members
Level 0
Forum Posts: 3
Member Since:
January 21, 2023
sp_UserOfflineSmall Offline
6
January 25, 2023 - 1:25 am
sp_Permalink sp_Print

It is OpenOffice, and changing the comma to a semicolon worked!
Thank you all so much!

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 170
Currently Online: Norilina Harvel, Jose Molina, Brenda Krol
Guest(s) 54
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1431
Anders Sehlstedt: 848
Velouria: 574
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 213
A.Maurizio: 202
Aye Mu: 201
Jessica Stewart: 185
Newest Members:
David Collins
Andras Marsi
Orimoloye Funsho
YUSUF IMAM KAGARA
PRADEEP PRADHAN
Vicky Otosnika
Abhishek Singh
Kevin Sojourner
Kara Weiss
And Woox
Forum Stats:
Groups: 3
Forums: 24
Topics: 6047
Posts: 26543

 

Member Stats:
Guest Posters: 49
Members: 31497
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Riny van Eekelen
© Simple:Press —sp_Information
  • 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
 
  • About My Online Training Hub
  • Contact
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

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.

Download A Free Copy of 100 Excel Tips & Tricks

excel tips and tricks ebook

We respect your privacy. We won’t spam you.

x