I have an excel file that I place a check box as I cannot use the radio button due the check box is linked with formula on excel, in the selection i.e. 1 2 3 4 if I select check box 1, then I select check box 3, check box 1 check should uncheck automatically
From what I understand from your question is that you want that, in each row when you mark a checkbox, the others are deactivated automatically.
There are two options:
Option 1
This option is the simplest, however, instead of using the checkboxes, the option buttons are used.
1.1 Step 1
Insert a Groupbox, for which you go to: Developer -> Insert -> Group Box (see Figure 1)
Figure 1
1.2 Step 2
Insert an Option Button, for which you go to: Developer -> Insert -> Option Button (see Figure 2)
Figure 2
1.3 Step 3
Once you add the "Option Buttons", you right click on one of them and press "Format Control" then click on "Control" and assign a destination cell. You only need to do this once as the rest of the “Option Buttons” are configured automatically (see Figure 3).
Figure 3
1.4 Note
When doing this, the destination cell varies with numerical values corresponding to the number of the selected button, which seems to better fit what you are trying to do (see Figure 4).
Figure 4
Option 2
In this option, simple macros are used to relate the Checkboxes to each other.
2.1 Step 1
Click on Developer -> Record Macro
2.2 Step 2
Right click on Checkbox 1 and press Format Control. Then go to Control and select Checked for Checkbox 1
2.3 Step 3
For Checkbox 2, 3 and 4 the same procedure is repeated, only the Unchecked option is marked
2.4 Step 4
Stop the macro recording and assign the macro to Checkbox 1. Then you must repeat everything mentioned above with Checkbox 2, 3 and 4
An example of this are for the Checkbox 1 and 3 (see Figure 5 and 6)
Figure 5
Figure 6
The result would be something like this (see Figure 7)
Figure 7
And that's it!, however if you use option 2 remember to save your file as a macro-enabled book
Related
I simply want a formula for drag down increment order pattern like AS3,AT3...CZ3,DA3 for Microsoft Excel 2016
How to do this is described in https://www.pryor.com/blog/create-a-custom-autofill-series-in-excel/
Create your own AutoFill Series:
In a set of cells add the elements in your custom series in the right order.
Select the cells which contain the data you want to comprise your custom list.
Click the File tab.
Click the Excel Options button to open the Excel Options dialog box.
Click the Advanced button [A] and scroll to the bottom of the Advanced Options window.
Click the Edit Custom Lists button [B] to open the Custom Lists dialog box.
=ADDRESS(3,ROW()+46-10,4)
3 = is the 3 you want to be displayed
46 = the start column number (you get it with this formula: =column() )
-10 = the row number of your first cell with the desired value (AT3)
4 = skip the dollar sign
I need to
1) Disable all the following options from "Cells" right-click context menu
a. Paste options
b. Insert
c. Delete
d. Format Cell
2) Disable all the following options from "Columns" right-click context menu
a. Paste options
b. Insert
c. Delete
d. Clear Content
e. Format Cell
3) Disable all the following options from "Rows" right-click context menu
a. Paste options
b. Insert Copied Cells only (Not Insert)
c. Format Cell
4) Disable all the following options from "Rows" right-click context menu for a specific range of rows (e.g. Rows 1 to 3)
a. Insert
b. Delete
c. Clear Content
5) Disable all the following option from " Form control button " right-click context menu
a. Format Control
Appreciate any help
Here is a simple way to achieve what you want. For most of them you can use exactly what you see in the right click menu. For example for Insert, you see Insert....
Application.CommandBars("Cell").Controls("Insert...").Visible = True 'False
Similary for others. I have not found a way to disable Paste Options: or the icons in it. You can however disable the Paste Special under Paste Options: as I mentioned above using Paste Special...
Note: Well this is the least of your problems. Remember users can still use the Ribbon or shortcut keys to achieve those things which you disable ;)
Edit
Unfortunately doesn't work for me. Does it have anything to do with Tables? because cells are part of a table! – Afshin Davoudy 8 mins ago
Yes for that you have to use
Application.CommandBars("List Range Popup").Controls("Delete").Visible = False
BEFORE
AFTER
Afshin Davoudy: how can I disable options in "Column" context menue? or Rows? (From Extended Chat)
Use
Application.CommandBars("Column").Controls("Delete").Visible = False
Application.CommandBars("Row").Controls("Delete").Visible = False
Please excuse me for the wording of the title. Not sure exactly how to word this so it's probably best to just show.
I have a list that looks like this
Name Date Updated
==== ===========
Item 1 1/1/2015
Item 2 1/2/2015
Item 3 1/3/2015
Item 2 1/4/2015
Item 3 1/5/2015
Item 1 1/6/2015
This will be an ongoing list. As items are updated they will be entered in like this. I would like to create a second sheet that gives me the last date that each item was updated. So the result based on the above table would look like this.
Name Date Updated
==== ===========
Item 1 1/6/2015
Item 2 1/4/2015
Item 3 1/5/2015
I have found a few solutions on the web that work when I first input the formula (Links below), BUT when I add more entries in the first table the results wont update or they'll show the wrong data.
Links:
http://blog.contextures.com/archives/2014/02/04/find-last-item-in-group-with-index-match/
http://www.get-digital-help.com/2014/02/07/find-last-matching-value-in-an-unsorted-list/
Thanks in advance for any help.
You can simply omit the numbers in the formula to get the whole column:
=INDEX($C:$C,MAX(($E$3=$B:$B)*MATCH(ROW($B:$B),ROW($B:$B))))
(following the formula from your second link).
You can record a macro as you do it manually one time. Then assign that macro to a button. Then click the button anytime you need the sheet updated.
Steps:
Start on a sheet other than the one with the data. Explanation in #3 below.
Start recording your macro by going to View > Macros > Record Macro. In the bottom left you'll now see a square stop button for when you want to stop recording.
Select the sheet with the data. This way the macro will always remember to select the right sheet regardless of where you are.
Select the two-column range of cells that has your data, then continue selecting a few hundred rows down, or at least well beyond where you think your data will eventually go down to.
Copy
Select the sheet where you want to have the summarized data.
Paste
Sort by name (ascending) and date (descending) all at once (rather than two operations). Do this by going to the Data tab in the ribbon and selecting the white and blue sort button that has two A's and two Z's and says "Sort".
With this pasted and sorted range still selected, remove duplicates in the name column. To do this, do not change the selection. Go to the Data tab and select Remove Duplicates.
Now your items will appear once and the date will be the most recent date.
Click the "stop recording" square blue button in the bottom left to stop recording your Macro.
You can assign this macro to a button or to a shortcut. To add a button you need to show the developer tab and then draw the button using one of the options on the developer tab. I can't remember offhand how to show the developer tab. Once you have a button, right click and assign the macro to the button.
13A. If you want to customize the macro, click ALT+F11 to get to the visual basic editor. Double click on one of the things named something like "module" on the left and you can edit your the range in your macro, for example if your data suddenly goes down 100 more rows than what you planned and you want the macro to cover it. Save with CTRL+S. The next time you run your macro, it will reflect these changes.
13B. View > Macros to edit your macro if you want to assign a shortcut key to it instead of adding a button.
Try all this with a copy of your spreadsheet so that you don't delete data by accident.
Does it work for you?
You could easily do this with a Pivot Table. Drag Item to Rows area and Dates to the Values area. Then format the values as Date, and select to return Max.
Here I have a chart
I did a right-click -> "Add labels" , and it read them from my a(H/C) row. Basically, I want it to read label values from the CO2/CH4 row instead, so they would be 0,0.5,1,2,5,10 instead. Of course, I want the chart itself to remain the same, so, the x values of dots are in row "b(O/C)", their y values are in "a(H/C)" row, and their respective labels are read from "CO2/CH4". Can it be done automatically and how (preferrably, without scripting magic)? Rewriting them manually is a pain, really.
You will get the desired results by following the steps below:
Step 1: Click on the Chart
Step 2: Select the Design Tab in Ribbon Bar (Note: “Design Tab” appears only when the Chart is selected)
Step 3: Click on “Select Data” feature in the Design Tab as shown in Screen Shot 1
Step 4: Click on Edit Button as shown in Screen Shot 2
Step 5: Change the Series Name Rage and the data range in “Series Y Values:” as highlighted in Screen shot 3
What about adding the different points as different series and using the series names as labels (instead of the y-values) ?
If you need the "line" between the points (or if you need to add a trendline...), keep the serie you already have (with every point) without labels
Excel 2013 added the capability to use text from worksheet cells as data point labels. If you don't have 2013 (your screen shot looks like 2010), or even if you do, you can use Rob Bovey's free Chart Labeler add-in
Using Excel 2007, I have a data connection that automatically refreshes upon opening. Within my table, the last column is called 'Show/Hide' and is set to 1(show) or 0 (hide).
After the data connection is finished updating the data and some of the 'Show/Hide' values have changed, I still have to manually show everything in the 'Show/Hide' column, then in the filter I have select '1' to show the correct data.
How do I get the 'show/hide' column to automatically refresh when the data refreshes?
Before (showing 2 items):
Color Is Color Show/Hide
Red Y 1
Blue Y 1
Widget N 0
After (showing 3 items after manually adjusting filter):
Color Is Color Show/Hide
Red Y 1
Blue Y 1
Widget N 0
Black Y 1
Your best bet will be to use a macro. Either attach it to startup or another trigger like a button.
If you know how to write macros you would use the VB command "ActiveWorkbook.RefreshAll" followed by the a refresh of your filter "AutoFilter.ApplyFilter" (This is a very basic example, your filter may have a name etc.)
If you don't know VB you can record the macro and perform the operations you want then just play it back. That should work just as well.