• 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
    • SALE 20% Off All Courses
    • 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
  • Login

Tagging records on sumif and moving to next tag|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Tagging records on sumif and moving to next tag|General Excel Questions & Answers|Excel Forum|My Online Training Hub
                    BLACK FRIDAY SALE 20% OFF ALL COURSES
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…Tagging records on sumif and moving…
sp_PrintTopic sp_TopicIcon
Tagging records on sumif and moving to next tag
Avatar
Prem Kiran

Active Member
Members
Level 0
Forum Posts: 5
Member Since:
August 25, 2020
sp_UserOfflineSmall Offline
1
August 25, 2020 - 6:41 am
sp_Permalink sp_Print sp_EditHistory

Hello,

I want to tag each record to A untill the sum of OS becomes equal or not great than A. then the next record should start taking B until the sum of OS is equal  or not greater than  B.

I have 20000 records and 44 tags to match up.

click here to see file

sp_AnswersTopicSeeAnswer See Answer
Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1563
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
2
August 25, 2020 - 9:19 am
sp_Permalink sp_Print

Hi,

In your workbook, the first example for Karthikeyan, the OS value is 475,998 but the tag is A?  But in your lookup table the treshold value for A is 100,000?

Regards

Phil

Avatar
Prem Kiran

Active Member
Members
Level 0
Forum Posts: 5
Member Since:
August 25, 2020
sp_UserOfflineSmall Offline
3
August 25, 2020 - 1:42 pm
sp_Permalink sp_Print

Hi,

I have rectified the issue and also marked the result manually. Please see the file again and help me.

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1563
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
4
August 25, 2020 - 2:14 pm
sp_Permalink sp_Print

Hi,

is the value for D supposed to be 130,000?

Phil

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1563
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
5
August 25, 2020 - 2:23 pm
sp_Permalink sp_Print sp_EditHistory

Can you please check your examples, they don't seem to match up with the description of what you want - see attached image.

Phil

tags.pngImage Enlarger

sp_PlupAttachments Attachments
  • sp_PlupImage tags.png (20 KB)
Avatar
Prem Kiran

Active Member
Members
Level 0
Forum Posts: 5
Member Since:
August 25, 2020
sp_UserOfflineSmall Offline
6
August 25, 2020 - 2:35 pm
sp_Permalink sp_Print sp_EditHistory

The sum do not match exactly to 100,000. So It should cover up little more than the tag amount.

um 

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1563
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
7
August 25, 2020 - 3:04 pm
sp_Permalink sp_Print

You said

I want to tag each record to A untill the sum of OS becomes equal or not great than A. then the next record should start taking B

so if the sum of OS is greater than 100,00 shouldn't the tag for row 4 be B?

and what about the value for Tag D?

Regards

Phil

Avatar
Prem Kiran

Active Member
Members
Level 0
Forum Posts: 5
Member Since:
August 25, 2020
sp_UserOfflineSmall Offline
8
August 25, 2020 - 3:05 pm
sp_Permalink sp_Print sp_EditHistory

Please help me as per the results i made manually. 

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4647
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
9
August 25, 2020 - 8:28 pm
sp_Permalink sp_Print sp_EditHistory

Hi Prem,

Excel doesn't understand "So It should cover up little more than the tag amount." Little more isn't something Excel can evaluate. You must give it exact instructions e.g. greater than, less than or equal to. There is no way to tell it 'a little more'.

In the attached file I've used an approximate match VLOOKUP to return the tag. If you want different tags, change the 'amounts' in column H.

Mynda

sp_AnswersTopicAnswer
Answers Post
Avatar
Prem Kiran

Active Member
Members
Level 0
Forum Posts: 5
Member Since:
August 25, 2020
sp_UserOfflineSmall Offline
10
August 26, 2020 - 3:56 am
sp_Permalink sp_Print sp_EditHistory

Thanks. This is meeting my requirement

S

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: El Riz, Tracy Lippiatt, Hannah Spink
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Catalin Bombea: 1864
SunnyKow: 1432
Anders Sehlstedt: 886
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 241
Hans Hallebeek: 222
Jessica Stewart: 219
A.Maurizio: 213
Newest Members:
Karen Childress
Ben Penney
Karen Quagliano
Natsuko Kojima
George Girhiny
Jack Ennis
Andrew Griffin
Mostafa Younes
Alan Lim
ken lee
Forum Stats:
Groups: 3
Forums: 24
Topics: 6637
Posts: 29114

 

Member Stats:
Guest Posters: 49
Members: 33046
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
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.