#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Joe Joe is offline
external usenet poster
 
Posts: 476
Default Check Boxes

I have a workbook with multiple worksheets. On worksheet 1 I have 10 check
boxes (Cells A1 to A10) that, when checked, links the data in Worksheet 1
(Cells B1 to B10) to Cells B1 to B10 on Worksheet 2. Cell B1 on Worsheet 1 is
linked to Cell B2 on Worksheet 2 and so on. The formula I used (that someone
in the Excel Discussion Group gave me) is
=IF(Worksheet1!A1<TRUE,"",IF(Worksheet1!B1="","", Worksheet!B1)). I put this
formula in cell B1 or Worksheet 2 and it works fine.

My question is, is there any way I can set up Worksheet 2 so that if any of
the 10 checkboxes on Worksheet 1 are checked (let's say three of them), the
data that corresponds with those checkboxes will show up in the first three
cells on Worksheet 2? Put another way, If I have 100 checkboxes on Worksheet
1 (with specific data linked to each one) and I only check 3 of them, is
there anyway to make the data linked to those 3 checkboxes show up in the the
first 3 cells (A1, A2, A3) of Worksheet 2? If so, how would I do that. Any
assistance would be greatly appreciated.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default Check Boxes

Not sure if I understand your question
If I do you need a macro like this that when you check Checkbox1 you can
put the data into cell A1.
You would have to do this for all checkboxes
Sub checkBox1()
Worksheets("Sheet2").Range("A1").Value _
= "CheckBoxChecked"
End Sub

"Joe" wrote:

I have a workbook with multiple worksheets. On worksheet 1 I have 10 check
boxes (Cells A1 to A10) that, when checked, links the data in Worksheet 1
(Cells B1 to B10) to Cells B1 to B10 on Worksheet 2. Cell B1 on Worsheet 1 is
linked to Cell B2 on Worksheet 2 and so on. The formula I used (that someone
in the Excel Discussion Group gave me) is
=IF(Worksheet1!A1<TRUE,"",IF(Worksheet1!B1="","", Worksheet!B1)). I put this
formula in cell B1 or Worksheet 2 and it works fine.

My question is, is there any way I can set up Worksheet 2 so that if any of
the 10 checkboxes on Worksheet 1 are checked (let's say three of them), the
data that corresponds with those checkboxes will show up in the first three
cells on Worksheet 2? Put another way, If I have 100 checkboxes on Worksheet
1 (with specific data linked to each one) and I only check 3 of them, is
there anyway to make the data linked to those 3 checkboxes show up in the the
first 3 cells (A1, A2, A3) of Worksheet 2? If so, how would I do that. Any
assistance would be greatly appreciated.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Check Boxes

Try this:

I'm assuming that your check boxes are linked to the cells they're "in". For
example, the check box "in" cell A1 is linked to cell A1.

Enter this array formula** in Sheet2 A1:

=IF(ROWS(A$1:A1)<=COUNTIF(Sheet1!A$1:A$10,TRUE),IN DEX(Sheet1!B$1:B$10,SMALL(IF(Sheet1!A$1:A$10,ROW(S heet1!B$1:B$10)-MIN(ROW(Sheet1!B$1:B$10))+1),ROWS(A$1:A1))),"")

Copy down to a number of cells that equals the number of check boxes you
have. The above formula assumes you have 10 check boxes in the range Sheet1
A1:A10.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)



--
Biff
Microsoft Excel MVP


"Joe" wrote in message
...
I have a workbook with multiple worksheets. On worksheet 1 I have 10 check
boxes (Cells A1 to A10) that, when checked, links the data in Worksheet 1
(Cells B1 to B10) to Cells B1 to B10 on Worksheet 2. Cell B1 on Worsheet 1
is
linked to Cell B2 on Worksheet 2 and so on. The formula I used (that
someone
in the Excel Discussion Group gave me) is
=IF(Worksheet1!A1<TRUE,"",IF(Worksheet1!B1="","", Worksheet!B1)). I put
this
formula in cell B1 or Worksheet 2 and it works fine.

My question is, is there any way I can set up Worksheet 2 so that if any
of
the 10 checkboxes on Worksheet 1 are checked (let's say three of them),
the
data that corresponds with those checkboxes will show up in the first
three
cells on Worksheet 2? Put another way, If I have 100 checkboxes on
Worksheet
1 (with specific data linked to each one) and I only check 3 of them, is
there anyway to make the data linked to those 3 checkboxes show up in the
the
first 3 cells (A1, A2, A3) of Worksheet 2? If so, how would I do that. Any
assistance would be greatly appreciated.

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Joe Joe is offline
external usenet poster
 
Posts: 476
Default Check Boxes

Thank you very, very much!

"T. Valko" wrote:

Try this:

I'm assuming that your check boxes are linked to the cells they're "in". For
example, the check box "in" cell A1 is linked to cell A1.

Enter this array formula** in Sheet2 A1:

=IF(ROWS(A$1:A1)<=COUNTIF(Sheet1!A$1:A$10,TRUE),IN DEX(Sheet1!B$1:B$10,SMALL(IF(Sheet1!A$1:A$10,ROW(S heet1!B$1:B$10)-MIN(ROW(Sheet1!B$1:B$10))+1),ROWS(A$1:A1))),"")

Copy down to a number of cells that equals the number of check boxes you
have. The above formula assumes you have 10 check boxes in the range Sheet1
A1:A10.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)



--
Biff
Microsoft Excel MVP


"Joe" wrote in message
...
I have a workbook with multiple worksheets. On worksheet 1 I have 10 check
boxes (Cells A1 to A10) that, when checked, links the data in Worksheet 1
(Cells B1 to B10) to Cells B1 to B10 on Worksheet 2. Cell B1 on Worsheet 1
is
linked to Cell B2 on Worksheet 2 and so on. The formula I used (that
someone
in the Excel Discussion Group gave me) is
=IF(Worksheet1!A1<TRUE,"",IF(Worksheet1!B1="","", Worksheet!B1)). I put
this
formula in cell B1 or Worksheet 2 and it works fine.

My question is, is there any way I can set up Worksheet 2 so that if any
of
the 10 checkboxes on Worksheet 1 are checked (let's say three of them),
the
data that corresponds with those checkboxes will show up in the first
three
cells on Worksheet 2? Put another way, If I have 100 checkboxes on
Worksheet
1 (with specific data linked to each one) and I only check 3 of them, is
there anyway to make the data linked to those 3 checkboxes show up in the
the
first 3 cells (A1, A2, A3) of Worksheet 2? If so, how would I do that. Any
assistance would be greatly appreciated.

Thanks




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Check Boxes

You're welcome!

--
Biff
Microsoft Excel MVP


"Joe" wrote in message
...
Thank you very, very much!

"T. Valko" wrote:

Try this:

I'm assuming that your check boxes are linked to the cells they're "in".
For
example, the check box "in" cell A1 is linked to cell A1.

Enter this array formula** in Sheet2 A1:

=IF(ROWS(A$1:A1)<=COUNTIF(Sheet1!A$1:A$10,TRUE),IN DEX(Sheet1!B$1:B$10,SMALL(IF(Sheet1!A$1:A$10,ROW(S heet1!B$1:B$10)-MIN(ROW(Sheet1!B$1:B$10))+1),ROWS(A$1:A1))),"")

Copy down to a number of cells that equals the number of check boxes you
have. The above formula assumes you have 10 check boxes in the range
Sheet1
A1:A10.

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)



--
Biff
Microsoft Excel MVP


"Joe" wrote in message
...
I have a workbook with multiple worksheets. On worksheet 1 I have 10
check
boxes (Cells A1 to A10) that, when checked, links the data in Worksheet
1
(Cells B1 to B10) to Cells B1 to B10 on Worksheet 2. Cell B1 on
Worsheet 1
is
linked to Cell B2 on Worksheet 2 and so on. The formula I used (that
someone
in the Excel Discussion Group gave me) is
=IF(Worksheet1!A1<TRUE,"",IF(Worksheet1!B1="","", Worksheet!B1)). I put
this
formula in cell B1 or Worksheet 2 and it works fine.

My question is, is there any way I can set up Worksheet 2 so that if
any
of
the 10 checkboxes on Worksheet 1 are checked (let's say three of them),
the
data that corresponds with those checkboxes will show up in the first
three
cells on Worksheet 2? Put another way, If I have 100 checkboxes on
Worksheet
1 (with specific data linked to each one) and I only check 3 of them,
is
there anyway to make the data linked to those 3 checkboxes show up in
the
the
first 3 cells (A1, A2, A3) of Worksheet 2? If so, how would I do that.
Any
assistance would be greatly appreciated.

Thanks






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check Boxes MACAVITY500 Excel Discussion (Misc queries) 4 November 18th 06 11:45 PM
How do I increase the size of check in check boxes Adams, Les Excel Discussion (Misc queries) 0 September 19th 06 02:35 PM
Enable check box in protected sheet + group check boxes Dexxterr Excel Discussion (Misc queries) 4 August 2nd 06 12:00 PM
How do i create a value for check boxes or option boxes Tim wr Excel Discussion (Misc queries) 1 February 9th 06 10:29 PM
how do you add up check boxes strider11580 Excel Discussion (Misc queries) 1 January 22nd 06 03:35 AM


All times are GMT +1. The time now is 10:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"