+ Reply to Thread
Results 1 to 2 of 2

Construct Column From Checked Values

Hybrid View

  1. #1
    Registered User
    Join Date
    02-13-2018
    Location
    CA
    MS-Off Ver
    2007
    Posts
    5

    Construct Column From Checked Values

    Alright I'm guessing this is a pretty common thing in excel and has likely been asked, but I can't think of the correct language to search for a solution to it! I thinks its easier just to post what I want than try and explain it.

    Anyways, say I have number 1-10 in column A1-A10. In column B I put an 'X' in B3, B5, B8,and B10. In Column C I want output in C1-C4 the values in A1-A10 that have an X next to them so 3, 5, 8, 10

    Untitled.png

    What formula would I input into column C to get this output. I'm guessing this would be done using an array (which i have very little experience using), or maybe you guys have some other solution.

    Thanks for the help

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,423

    Re: Construct Column From Checked Values

    You can put this array* formula in C1:

    =IFERROR(INDEX($A$1:$A$10,SMALL(IF($B$1:$B$10="x",ROW($B$1:$B$10)),ROWS($1:1))),"")

    *Note that an array formula needs to be committed using the key combination of Ctrl-Shift-Enter (CSE), instead of the usual Enter.

    Then you can copy the formula down as far as is required, using your usual way(s).

    Hope this helps.

    Pete

+ 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. Check Box that shows options in Combo Box if Checked, and Hides if Not Checked
    By dumbjodie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-13-2013, 10:06 AM
  2. [SOLVED] Using the Changing values of a range to construct a new data array
    By Romulo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-26-2013, 08:06 AM
  3. [SOLVED] When checkbox is checked it does not copy to new sheet. Only if not checked using false
    By thelisa in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-28-2013, 07:59 AM
  4. Replies: 2
    Last Post: 12-19-2012, 11:23 PM
  5. Copy values if checkbox is checked
    By jtone32512 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-21-2012, 03:54 AM
  6. [SOLVED] VBA code to get checked values and put one below another in another column
    By Anka in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-29-2012, 08:24 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