• 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

Auto sequence of suffix|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Auto sequence of suffix|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…Auto sequence of suffix
sp_PrintTopic sp_TopicIcon
Auto sequence of suffix
Avatar
Mohith M Y
Member
Members
Level 0
Forum Posts: 17
Member Since:
January 10, 2020
sp_UserOfflineSmall Offline
1
January 10, 2020 - 8:14 pm
sp_Permalink sp_Print

Hello,

Could you please help me on this?
I need to add a suffix of numbers to a number in a particular cell and the sequence should be for a quantity specified in another cell.

Example:
Cell A1 contains number - 12345
Cell B1 contains number - 5
Suffix sequence - 01, 02 ~~~ until the count reaches B1 cell quantity

In another cells I need sequence numbers as 1234501, 1234502, 1234503, 1234504, 1234505

Request your kind help.

Thanks,
Mohith

sp_AnswersTopicSeeAnswer See Answer
Avatar
Purfleet
England
Member
Members


Trusted Members
Level 4
Forum Posts: 412
Member Since:
December 20, 2019
sp_UserOfflineSmall Offline
2
January 11, 2020 - 12:55 am
sp_Permalink sp_Print

Try this

=IF(ROWS($A$1:C1)>$B$1,"",$A$1&IF(ROWS($A$1:C1)<10,"0","")&ROWS($A$1:C1))

Rows with an expanding range - this turns formula off if the count is more than B1

IF(ROWS($A$1:A1)>$B$1 

This joins A1 with a 0 if the suffix is less than 10

$A$1&IF(ROWS($A$1:C1)<10,"0","")

This joins the suffix incrementing number

ROWS($A$1:A1))

 

Let me know if it works for you

Avatar
Mohith M Y
Member
Members
Level 0
Forum Posts: 17
Member Since:
January 10, 2020
sp_UserOfflineSmall Offline
3
January 11, 2020 - 1:14 pm
sp_Permalink sp_Print

Hello,

Thanks for your suggestion. I tried with the formula suggested and its working.

But the suffix incrementing to the count of B1 - 5 is not working.

The suffix increment should be for the count of 5 like 1234501, 1234502, 1234503, 1234504, 1234505. These 5 values should be in different individual cells.

Could you please help.

Avatar
Purfleet
England
Member
Members


Trusted Members
Level 4
Forum Posts: 412
Member Since:
December 20, 2019
sp_UserOfflineSmall Offline
4
January 11, 2020 - 4:19 pm
sp_Permalink sp_Print

Seems to work for me - did you lock the first part of rows with the $ sign?

See attached

Its always better to add a work book with some data so we can see what is going on

 

Purfleet

sp_AnswersTopicAnswer
Answers Post
Avatar
Mohith M Y
Member
Members
Level 0
Forum Posts: 17
Member Since:
January 10, 2020
sp_UserOfflineSmall Offline
5
January 11, 2020 - 10:23 pm
sp_Permalink sp_Print

Thank you very much. Its working

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Lionel Baijot, Ben Hughes
Guest(s) 11
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:
Hayden Hao
Angela chen
Sean Moore
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Ray-Yu Yang
George Shihadeh
Naomi Rumble
Forum Stats:
Groups: 3
Forums: 24
Topics: 6211
Posts: 27238

 

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