+ Reply to Thread
Results 1 to 19 of 19

Numerical Sequence with different conditions

  1. #1
    Registered User
    Join Date
    08-10-2017
    Location
    Brazil
    MS-Off Ver
    10
    Posts
    24

    Numerical Sequence with different conditions

    Hallo,

    I´m still new in this forum and using Excel too.

    I have solved a problem with numeric sequeces here in this forum one already, but I want to improve it, as I now have a workbook that I can attach.

    There are different conditons for column A, B and C, which I want to make "smarter".

    Column A: Should be a numerical sequence that skipps a cell always at the second cell of the beginning of a new block
    Column B: Should repeat the same number, while being in the same block, than add 1 to the next block. The solution used until now is to count the blanks, so I extend the formula until the and and skroll back erasing the cell I want manually, so that the sequence is right.
    Column C: Should be such as column B, but skipping certain blocks, those named "Sprechen Sie jetzt" and "Rollenspiel".

    Can someone help me? Ill attach the workbook, there the one willing to helpo me probabely will be able to recognize the pattern.

    Thanks a lot
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-10-2017
    Location
    Brazil
    MS-Off Ver
    10
    Posts
    24

    Re: Numerical Sequence with different conditions

    Please!!!!

  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Numerical Sequence with different conditions

    Hello again Can column D be used to determine where changes must occur? That is, if you enter a value in column D, columns A,B, and C will automatically adjust?

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Numerical Sequence with different conditions

    OMG...

    First Q. What defines a block?
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Numerical Sequence with different conditions

    By the way - please don't bump your thread after 38 minutes. That will put SOOOO many people off helping you AT ALL.
    .

    You're not paying for our help: don't expect TRTs of a few minutes.

  6. #6
    Registered User
    Join Date
    08-10-2017
    Location
    Brazil
    MS-Off Ver
    10
    Posts
    24

    Re: Numerical Sequence with different conditions

    Hallo again.
    Column D cannot be used unfortunately. It is no reference. The lenght of each block is not fixed and depends on the content. There is not really a pattern on the other columns but A, B and C. Thats the problem, it would be much easier if there was somewhere to refer on.

  7. #7
    Registered User
    Join Date
    08-10-2017
    Location
    Brazil
    MS-Off Ver
    10
    Posts
    24

    Re: Numerical Sequence with different conditions

    Ok. Thanks

    The block states at the cell "Narradora principal" and goes until the next cell with the same content on column E.
    The lenght varies. The is no pattern for it.
    Last edited by RaphaelK; 08-18-2017 at 02:15 PM.

  8. #8
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Numerical Sequence with different conditions

    Perhaps this:
    A5 =IF(B4="","","WB"&TEXT(AGGREGATE(14,6,--RIGHT(A$4:A4,3),1)+1,"000"))
    B5 =IF(AND(F5=F6,F5="Narradora principal"),"","WB_BL"&C4)
    C5 =C4+(B5="")

  9. #9
    Registered User
    Join Date
    08-10-2017
    Location
    Brazil
    MS-Off Ver
    10
    Posts
    24

    Re: Numerical Sequence with different conditions

    The problem is I have sheets with "WB" and other without. Those with it, are easier to work on, because they are much shorter. If we consider only those without "WB", what would you suggest?

  10. #10
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Numerical Sequence with different conditions

    If the number is always the LAST 3 characters of the column A codes, I can read the "prefix" off of your initial values.
    Last edited by leelnich; 08-18-2017 at 04:16 PM.

  11. #11
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Numerical Sequence with different conditions

    If the number is always the LAST 3 characters of the column A codes, I can read the "prefix" off of your initial values.
    Again, if initial values are on row 4:
    A5 =IF(B4="","",LEFT(A$4,LEN(A$4)-3)&TEXT(AGGREGATE(14,6,--RIGHT(A$4:A4,3),1)+1,"000"))
    B5 =IF(AND(F5=F6,F5="Narradora principal"),"",LEFT(A$4,LEN(A$4)-3)&"_BL"&C4)
    C5 =C4+(B5="")

    Please click the Add Reputation star below any helpful posts, and use Thread Tools (up top) to mark your thread as SOLVED once you have your answer. Thanks!-Lee

  12. #12
    Registered User
    Join Date
    08-10-2017
    Location
    Brazil
    MS-Off Ver
    10
    Posts
    24

    Re: Numerical Sequence with different conditions

    Nice, it worked perfectly on Excel. Buuut, there is a new problem. Unfortunately, Google Spreadsheet does not recognize AGGREGATE function. What do I do? is there another way to solve this?

  13. #13
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Numerical Sequence with different conditions

    Please Login or Register  to view this content.
    Last edited by leelnich; 08-18-2017 at 05:50 PM.

  14. #14
    Registered User
    Join Date
    08-10-2017
    Location
    Brazil
    MS-Off Ver
    10
    Posts
    24

    Re: Numerical Sequence with different conditions

    Now it worked nicely. Though I have a last problem with column C.

    If I want to skip all the block that is named "Sprechen Sie jetzt" OR "Rollenspiel", how can I do it? I don´t want to associate the value in column C with a value on Column B, because as soon as I have the first block skipped, the values on column B and C in the same row don´t match anymore.
    I tried =IF(C4+B5=""),G5="Sprechen Sie jetzt"OR"Rollenspiel",""), but obiously it didn´t work, I guess because I have to count than instead of using values in C and B.

    The rest is just perfect now!

  15. #15
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Numerical Sequence with different conditions

    OK, slight change- Initial values FOR ALL 3 COLUMNS now required on row 3. These can be ENDING values from previous sheet OR properly formatted codes with numeric parts set to zero.
    1) Each column now increments its OWN COUNT VALUE instead of sharing.
    2) Column C now suspends increment and shows blanks for excluded titles.

    A4 =IF(B3="","",LEFT(A$3,LEN(A$3)-3)&TEXT(MAX(INDEX(--RIGHT("000"&A$3:A3,3),0))+1,"000"))

    B4 =IF(F4="Narradora principal",IF(F4=F5,"",LEFT(B$3,FIND("BL",B$3)+1)&MAX(INDEX(--(0&MID(B$3:B3,FIND("BL",B$3)+2,4)),))+1),B3)

    C4 =IF(B4="",IF(OR(G5="Sprechen Sie jetzt",G5="Rollenspiel"),"",MAX(C3:C$3)+1),C3)

    Row\Col
    A
    B
    C
    D
    E
    F
    G
    1
    PEN COD.
    COD. B
    CD
    LEC
    PAG
    LOCUTOR
    2
    Inserção:
    (VINHETA)
    3
    WB052 WB_BL5
    5
    <--Initial Values
    Inserção:
    WIZ_DE_4
    4
    WB053
    6
    121
    2
    Narradora principal Lektion 121
    5
    WB_BL6
    6
    Narradora principal Richtig oder falsch
    6
    WB054 WB_BL6
    6
    Narrador 1
    7
    WB055
    7
    122
    3
    Narradora principal Lektion 122
    8
    WB_BL7
    7
    Narradora principal Richtig oder falsch
    9
    WB056 WB_BL7
    7
    Narrador 1
    10
    WB057 WB_BL7
    7
    Narradora 1

  16. #16
    Registered User
    Join Date
    08-10-2017
    Location
    Brazil
    MS-Off Ver
    10
    Posts
    24

    Re: Numerical Sequence with different conditions

    Perfect perfect perfect. Thank you very much.

    Could you teach me one last thing? Is there a waz to enter a value in a cell and display another value? or blank it?
    So if I enter the values for row 3 I can hide them on column A and B and on cloumn C I can display the actual value + 1?

    I thought of using a hidden row, say, hide row 3 and insert another row, so I can display on row 2 and the new row (which I think that should be row 4 than) the same value as in C5.

  17. #17
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Numerical Sequence with different conditions

    Sorry, I don't understand. Please attach a workbook with simulated results HIGHLIGHTED to show what you mean. Include a description, too.
    (This is always the best way to get a quick, accurate answer.)

  18. #18
    Registered User
    Join Date
    08-10-2017
    Location
    Brazil
    MS-Off Ver
    10
    Posts
    24

    Re: Numerical Sequence with different conditions

    Never mind. I simply added the reference row and than I hid it.

    I worked perfectly. Thank you very much!

  19. #19
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Numerical Sequence with different conditions

    You're most welcome! If complete, please mark your thread as SOLVED (Thread Tools up top). Thanks -Lee

    Please click the Add Reputation star below any helpful posts, and use Thread Tools (up top) to mark your thread as SOLVED once you have your answer. Thanks!-Lee

+ 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] Check numerical sequence when the numbers are entered
    By BRISBANEBOB in forum Excel General
    Replies: 4
    Last Post: 03-04-2016, 04:28 PM
  2. Fill in numerical sequence?
    By hpon in forum Excel General
    Replies: 6
    Last Post: 09-29-2011, 04:28 AM
  3. Macro required to delete duplicate rows and arrange numerical sequence
    By domex in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2010, 07:13 AM
  4. Excel 2007 : Generate a numerical sequence in one cell
    By Cushionsupplier in forum Excel General
    Replies: 2
    Last Post: 03-21-2010, 06:58 PM
  5. scan for numerical sequence?
    By Ltat42a in forum Excel General
    Replies: 2
    Last Post: 09-25-2007, 04:12 AM
  6. Create a numerical sequence in a column: From 1 to ....
    By Depechez in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 07-18-2006, 12:50 PM
  7. How do I insert new work sheets in numerical sequence?
    By ray/c in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-07-2006, 08:30 AM

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