+ Reply to Thread
Results 1 to 25 of 25

Train Ticket based on Dabba No

  1. #1
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Train Ticket based on Dabba No

    Hi all,
    kindly help me, i am working in this sheet, there are three parts,
    1 - allocation of train ticket
    2- return
    3- exchange of ticket
    first i have to restrict the cell L4 sheet T-B-Economy, if exceed 20 then message will come "No Seat" same for next M4 "No Berth".
    actually 1 Dabba have 20 seats and 40 berth economy and AC class. sheet T-A will give you complete pic of Train detailed. second is number allotment is too difficult like,
    ticket issue to customer X - 1 to 10
    next series will be generate for same Dabba 11 to 20 for seats
    if Train 1 and Dabba 1 is full by seat and berth then goto second dabba.
    you can see the sequence of sheet T-B-Economy and T-B-AC.
    in T-C sheet i use formula to find booked and remaining seat and berth, so there is a problem of range selection of Dabba.
    Thanks.
    Attached Files Attached Files
    Last edited by majidsiddique; 02-04-2019 at 05:22 AM.

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Train Ticket Issuance problem

    first i have to restrict the cell L4 sheet T-B-Economy, if exceed 20 then message will come "No Seat" same for next M4 "No Berth".
    I am not sure that I understand all of what is being requested so I will attempt to address this one point first.
    The following custom data validation formula is applied to L4:L22 =SUMIFS(L$4:L4,G$4:G4,G4,E$4:E4,E4)<=20
    Similarly for M4:M22 =SUMIFS(M$4:M4,G$4:G4,G4,E$4:E4,E4)<=40
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Train Ticket Issuance problem

    welcome to the forum

    For future reference, please take a moment to read the forum rules and use thread titles that are descriptive of your problem . (think browser search terms?).

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

  4. #4
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Train Ticket Issuance problem

    Hi Pepe Le Mokko,
    is there need to change Title Thread?

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Train Ticket Issuance problem

    Yes, the title needs changing, please.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Train Ticket Issuance problem

    Thanks JeteMC.
    one issue is solved, can any help to exchange and return?

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Train Ticket Issuance problem

    You need to change the thread title first, please.

  8. #8
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Train Ticket Issuance problem

    Hi AliGW,
    can you please tell me step of changing the thread?

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Train Ticket Issuance problem

    To change a title go to your first post, click EDIT then Go Advanced and change your title.

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Train Ticket based on Dabba No

    Thank You for changing the title.
    If I understand correctly you could use the following formula to fill in the 'Return' information based on ticket number:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note that in row 6 the formula needs to end with ...ROW(4:4) instead of ...ROW(3:3) because the Client Name is not being displayed on this form.
    The use of this formula is modeled on the 'RETURN' sheet (font red)
    Looking at the 'Exchange...' sheets the same formula should work for them also.
    Let us know if you have any questions.
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Train Ticket based on Dabba No

    Hi JeteMC,
    great, OK first we focus on return the same scenario. i use your formula its working perfect. there are two possibilities in ticket return, first if customer said fully ticket return so its mean Train 1 and Dabba No 5 Economy 10 Seat and 20 Berth fully cancel and available in same date. another case is the customer said that 5 Seat and 10 Berth will cancel on same Ticket so it mean 5 Seat and 10 berth booked in the same Ticket No and rest of 5 Seat and 10 Berth will be available to other customer.
    when customer fully cancel the ticket then please mention T-B-Economy sheet Ticket No E-1000007 next column shows "Ticket Return" and Today Date.
    Exchange will be discussed later.
    Attached Files Attached Files

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Train Ticket based on Dabba No

    Again, if I understand correctly, then you could use the following formula to populate cell E5 on the T-C sheet:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The following could then populate cell F5:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Similar formulas could be used to populate G5:H5.
    If the customer only cancels some of the seats/berths then those numbers would have to manually be placed in the cells in rows 14:15 on the Return Sheet.
    Let us know if you have any questions.
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Train Ticket based on Dabba No

    Hi JeteMC,
    great work, kindly add one thing more in sheet T-B-Economy when ticket return fully or partially so on this sheet can be highlighted ROW and in front remarks i mention on it.
    Attached Files Attached Files

  14. #14
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Train Ticket based on Dabba No

    This proposal employs two helper columns (V:W),which may be moved and/or hidden for aesthetic purposes, to the T-B-Economy sheet.
    Columns V:W are populated using: =IF(S4="","",INDEX(RETURN!C$14:J$14,MATCH(R4,RETURN!C$2:J$2,0)))
    Column S is populated using: =IF(ISNUMBER(MATCH(R4,RETURN!C$2:J$2,0)),"Ticket Cancel","")
    Column T is populated using: =IF(S4="","",IF(AND(L4=V4,M4=W4),"Fully",""))
    Column U is populated using: =IF(AND(S4="Ticket Cancel",T4=""),"Partial "&V4&" Seat and "&W4&" Berth","")
    Conditional formatting uses: =$S4="Ticket Cancel"
    Let us know if you have any questions.
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Train Ticket based on Dabba No

    Hi JeteMC,
    its wirking great, But tell me one thing more, i have to share in ticket in allocation based on train and Dabba No. For Example i use Seat and Berth allocate to customer 10 Seats and 10 Berth, But did not mention where to start this no. one Dabba seat 20 and berth 40 also mention first sheet. can you tell me how to settle this issue. i issue 10 seat to mention but where to start No 1 to 10 or 5 to 15 or 10 to 20 i also include 2 more column in T-B-Economy Sheet, but don't use any formula to apply it because all formula disturbed by this. do you have any suggestion for this.
    i also include final stage exchange in the attached sheet. exchange ticket will show on last of T-B-Economy

    But first to settle allocation of seat and berth numbers.

  16. #16
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Train Ticket based on Dabba No

    please review attched file
    Attached Files Attached Files

  17. #17
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Train Ticket based on Dabba No

    First change "Dabba" word. Because most of person not know this word. Say as Rail Coach.
    In "T-B-Economy" sheet in column "Z4" =LEFT(T4,2)
    In "AA4" column :
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    copy paste down.
    in "AA1"
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Kindly change range as per your data record in case of row more than 22.
    For max value. In "Z1" is E-
    In sheet "EXCHANGE-E" in "B24"
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  18. #18
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Train Ticket based on Dabba No

    Hi AVK,
    i changed the word Dabba No but tell me how to deal with Seat and Berth numbers. when i goto T-C sheet for checking Seat and Berth available in a train. i do small change in return sheet and then goto T-C sheet for checking rail coach booking and available Seat and Berth.
    Attached Files Attached Files

  19. #19
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Train Ticket based on Dabba No

    Perhaps the following will be useful.
    Helpers are added in columns I:L
    Formulas in columns I and K are similar to: =IF(E5>0,1,0)
    Formulas in columns J and L are similar to: =SUM(E$5:E5)
    The formulas that display the ticket numbers are similar to: =I5&" to "&J5
    Let us know if you have any questions.
    Attached Files Attached Files

  20. #20
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Train Ticket based on Dabba No

    very smart, really fantastic, i add one more new to check perfect,
    let go to final stage Exchange Ticket, Exchange-E sheet i made it exchange ticket E-1000003, it exchange cancel and issue new ticket, when issue new then copy to paste T-B-Economy sheet as i paste it. you can see the file and how to deal with remain old formulas. kindly restriction return and exchange sheet when to enter ticket no cheeked it before cancel or exchange over all T-B-Economy Sheet.
    exchange-E sheet prior to make this ticket seat and berth was available in this train and Rail coach after pasting exchange ticket data it is full.
    Attached Files Attached Files

  21. #21
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Train Ticket based on Dabba No

    I saw that E11:F11 were reporting seat/berth numbers even when there were no seats/berths available. I believe that corrections have been made such that when the values in E10:F10 are zero, i.e. IF(E10=0..., then the seat/berth numbers will display N/A.
    I will have to look at the Exchanges later.
    Attached Files Attached Files

  22. #22
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Train Ticket based on Dabba No

    Hi JeteMc,
    it is OK.

  23. #23
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Train Ticket based on Dabba No

    If I understand correctly then the following change to the formula for columns X:Y on the T-B-Exchange sheet should help:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I modified the formula in columns B:P on the Exchange-E sheet, which required modifying a few headers on both the T-B-Exchange and Exchange-E sheets:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files

  24. #24
    Forum Contributor
    Join Date
    12-08-2018
    Location
    pakistan
    MS-Off Ver
    2013-365
    Posts
    500

    Re: Train Ticket based on Dabba No

    Great work boss,
    thanks a lot. you are so smart.
    really cheers.

  25. #25
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,535

    Re: Train Ticket based on Dabba No

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Selecting Nearest Time And Train Line From Set Train Schedule (2017)
    By tecsbrain in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-13-2017, 01:04 AM
  2. Selecting Nearest Time And Train Line From Set Train Schedule
    By Fattie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-13-2017, 12:44 AM
  3. Uk Train Map Dashboard
    By pauldaddyadams in forum Excel General
    Replies: 1
    Last Post: 04-07-2015, 06:07 PM
  4. help with vba form creation
    By jakeembx in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-16-2013, 08:53 AM
  5. I need a volunteer to train me in VBA for a project!
    By jimmisavage in forum Excel General
    Replies: 1
    Last Post: 05-18-2007, 07:55 AM
  6. Range selection-track the issuance
    By ledzepe in forum Excel General
    Replies: 1
    Last Post: 09-18-2006, 12:46 PM
  7. [SOLVED] [SOLVED] automatic ID issuance in MS Exel worksheet
    By Muhammad Yaqub in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-06-2005, 12:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1