+ Reply to Thread
Results 1 to 17 of 17

Adding blank columns

  1. #1
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Adding blank columns

    Hi,
    Below is the function provided by Glen at https://www.excelforum.com/excel-for...ml#post5905252 #Post 31

    Please Login or Register  to view this content.
    How to add blank columns in between Choosecols(1,2,3,5,4,6),i.e like this > Choosecols(1,2,3,"","","","",5,"",4,6).
    Last edited by paradise2sr; 01-02-2024 at 12:10 PM.

  2. #2
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Adding blank columns in the final result with value greater or equal

    You could go for something like this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    '\' Column separator in my region.
    Last edited by DJunqueira; 01-01-2024 at 11:32 PM.

  3. #3
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    3,231

    Re: Adding blank columns in the final result with value greater or equal

    =LET(f,LET(
    A,Sheet1!A6:R1235,
    B,CHOOSECOLS(FILTER(A,(INDEX(A,,4)<>"")*(INDEX(A,,18)+INDEX(A,,17)<>0)),2,3,4,11,17,18),
    C,IFERROR(1/(1/CHOOSECOLS(B,1,2)),""),
    D,MAP(INDEX(B,,3),LAMBDA(z,TEXTJOIN(" ",,FILTERXML("<A><B>"&SUBSTITUTE(TRIM(SUBSTITUTE(z,CHAR(38),"&amp;"))," ","</B><B>")&"</B></A>","//B[translate(.,'1234567890','')=.]")))),
    E,IF(INDEX(C,,1)="","",INDEX(B,,4)),
    HSTACK(C,D,TAKE(B,,-2),E,{""})),IFERROR(CHOOSECOLS(f,1,2,3,7,7,7,7,5,7,4,6),""))

  4. #4
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Adding blank columns in the final result with value greater or equal

    Hi Gregb11,

    It did ok with the file. Translation of formulas is a thing...
    Last edited by DJunqueira; 01-02-2024 at 12:14 AM.

  5. #5
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: Adding blank columns in the final result with value greater or equal

    Quote Originally Posted by Gregb11 View Post
    =LET(f,LET(
    A,Sheet1!A6:R1235,
    B,CHOOSECOLS(FILTER(A,(INDEX(A,,4)<>"")*(INDEX(A,,18)+INDEX(A,,17)<>0)),2,3,4,11,17,18),
    C,IFERROR(1/(1/CHOOSECOLS(B,1,2)),""),
    D,MAP(INDEX(B,,3),LAMBDA(z,TEXTJOIN(" ",,FILTERXML("<A><B>"&SUBSTITUTE(TRIM(SUBSTITUTE(z,CHAR(38),"&"))," ","</B><B>")&"</B></A>","//B[translate(.,'1234567890','')=.]")))),
    E,IF(INDEX(C,,1)="","",INDEX(B,,4)),
    HSTACK(C,D,TAKE(B,,-2),E,{""})),IFERROR(CHOOSECOLS(f,1,2,3,7,7,7,7,5,7,4,6),""))
    Thanx Gregb11,you did a splendid work.



    .
    Last edited by paradise2sr; 01-02-2024 at 12:14 PM.

  6. #6
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: Adding blank columns in the final result with value greater or equal

    I am going to prepare a new demo data that will ease.

  7. #7
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: Adding blank columns in the final result with value greater or equal

    Kindly find in attachment.You can ignore above links as everythings I have restated ane explained in current demo file.

    I have highlighted in both the sheets.Those highlighted data I don't require Sheet1 & Sheet3.
    I have explained each row in Sheet1 in S Column in detailed.

    Rest remaining data is to be extracted which is presented in Sheet3 including those highlighted which is not required.

    You can redefined the formula to get the ultimate result.
    Attached Files Attached Files

  8. #8
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Adding blank columns in the final result with value greater or equal

    Another generic solution that should work for each table F:

    Please

    Replace in a working formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    with
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    See attachment for a sample.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: Adding blank columns in the final result with value greater or equal

    No,I think Gregb11 # Post 3 seems working.

    Have you seen # Post 7 demo file.

  10. #10
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Adding blank columns in the final result with value greater or equal

    In the formula of Glenn please try:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: Adding blank columns in the final result with value greater or equal

    Thanx HansDouwe. Position of col seems to be altered.
    Last edited by paradise2sr; 01-02-2024 at 12:12 PM.

  12. #12
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Adding blank columns in the final result with value greater or equal

    Or in your demo data of Post #7, please try:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: Adding blank columns

    Ok that is good.
    Last edited by paradise2sr; 01-02-2024 at 12:13 PM.

  14. #14
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Adding blank columns in the final result with value greater or equal

    I don't understand what you mean with: "I do not like to extract", but you can also try

    Please Login or Register  to view this content.
    or more generic:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: Adding blank columns in the final result with value greater or equal

    Thanx all of u.
    Last edited by paradise2sr; 01-02-2024 at 12:15 PM.

  16. #16
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Adding blank columns

    Thanks for the feedback.

    If there any questions left don't hesistate to ask these questions here.

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  17. #17
    Forum Contributor
    Join Date
    03-11-2011
    Location
    Nepal
    MS-Off Ver
    MS Excel 2024
    Posts
    1,384

    Re: Adding blank columns

    Hi,HansDouwe,

    I have one a little bit different issue i. Filtering the data posted which I require through formula based as well posted at >
    https://www.excelforum.com/excel-pro...ml#post5905745

+ 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] Adding result if totals are equal
    By Marvo in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-13-2022, 08:09 AM
  2. [SOLVED] IF greater than or equal to = Pass/Fail, IF blank = leave blank
    By Lgonzalez91 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-28-2018, 05:18 PM
  3. Adding events across columns into a final column
    By Jacbee58 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-17-2017, 12:13 PM
  4. Replies: 3
    Last Post: 02-12-2016, 11:15 AM
  5. [SOLVED] Text to columns, transpose data & final result
    By sam1105 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-19-2015, 03:36 AM
  6. COUNTIF until the result is greater than or equal to a specified number.
    By JSB_2011 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-06-2012, 11:58 PM
  7. adding equal/greater than into formula
    By rvnwdr in forum Excel General
    Replies: 2
    Last Post: 09-23-2005, 06: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