show only values if checkbox value is true - excel

I have data list in column B1:B4 as below
Section_A
Section_B
Section_C
Section_D
in-front of these values in column A1:A4 I have 4 check boxes placed.(form control type not active X).I want generate only clicked values to column C.Example:After first check box and third check box clicked Show Section_A and Section_C.(In column C need this result without blank cell between Section_A and Section_C.

You can use LARGE method for which you would need to add one more column.
1st: link your checkbox with cells in column A so that respective cell will give TRUE or FALSE when the checkbox is ticked or unticked respectively.
2nd: Move your column B data into column C and in front of each cell in column A, Assign weight in column B(You can Hide this column If you don't want this to be visible).
3rd: Use Large Function in column D as shown in Below SS.
change the color of cells in column A to white and Hide Column B, it would look something like this.
and your work is done.

Related

Data validation in excel, automatic value insert in adjacent cell

is it possible to add data validation dropdown in column A, whereas the adjacent cell in column B would automatically be filled with a set value corresponding to the choice made in the column A dropdown?
I am not looking for another dropdown, but a preset value.

How to move data from one column to another without overwriting existing values in destination column

I'm hoping this is so simple I'm just over-looking the obvious answer! I want to move the values (pictured) in column A, en-masse, to the blank cells in column B without overwriting the existing values in column B. Note that the data in column B has differing number of rows. Any ideas?
enter image description here
There are a couple of options to do this:
Option 1
Place a filter onto the data
Filter column B for blank values
Enter a formula into B1 that is =A1
Drag this down to the bottom of your cells
Set the filter for all values
Select the whole of column B
Copy and Paste the data as values
Option 2
Create a new column after B
In this column enter the following formula - =IF(B1="",A1,B1)
Drag this down to the bottom of your data
Select the whole of column B
Copy and Paste the data as values
Delete column B
Column C then becomes column B
I knew I was missing something...Copy Column A, highlight column B, 'Paste special', tick 'Skip blanks' checkbox and done! Many thanks for reading.

give drop-down list if condition not matched

wanting to use an IF statement (or whatever will do the job) to populate a cell (cell B) based on what was entered in another cell (Cell A), but if Cell A doesn't = x, then I want users to be able to select an answer from a drop-down list
e.g. =IF(B23="Softphone", "Yes", drop-down list)
So if Cell A = Softphone, then Cell B is auto-populated with 'Yes'. If Cell A = anything else, then Cell B becomes a drop-down list
Is this possible?
I may be wrong but I don't think you can do that with IF statements i.e. returning a drop-list if the False condition is returned in your IF statement.
However, you can work around this with a slightly different layout on your worksheet. Try this formula:
=IF(B23="Softphone", "Yes",IF(D23="","Select option in column D",D23))
In column D (using the Excel ribbon, select Data and then Data Validation), create a drop-down list of what you want if it's not "Softphone" in column B.
Then, if the input in column B isn't "Softphone", it'll ask the user to select an option from the drop-down list in column D. And if it's blank - it'll show show as a default of 'Select option in column D' like a prompt to the user.

Extract rows with max value that has unique cell values

The unique values are B, D, and F. I want to extract rows with a max Value in C. Thanks for the help.
Here is the sample value
Sample Values
Expected Output
Output
This should be the expected output
This question is more suited to SuperUser because it's not programming-related but here's a quick answer.
If you want to display only rows where Column C = Maximum of Column C then you can use AutoFilter.
Select (highlight) the range to filter - in your example that's B3:F6.
Click Filter on the Data tab to turn on AutoFilter.
Click the arrow drop-down arrow in the column header for column C.
Click Number Fiters -> Top 10...
Choose Top 1 Items and click OK.
Only rows with Column C = max(column C) will be displayed.
More Information :
Office.com : Quick start: Filter data by using an AutoFilter

Finding unique values between 2 Excel columns

I have two simple columns in Excel below
ID ID1
123 123
124 125
125 126
126
I was able to use the conditional formatting in excel as follow:
1. Highlight the 2 columns
2. Click on the conditional formatting
3. New rule
4. Select format only unique or duplicate values
5. Select unique under format all:
6. Select Format and click ok.
I can see that the steps above shows the highlighted value which is 124.
My question is, how can I filter out that 124 value from such a small sample above?
I have a columnA that has 50k records and columnB that has 48k records. I want to see or filter out the 2k records from columnA.
Here's one approach using match and a filter.
Enter =MATCH(A1,B:B,) in column c add a filter to row 1 and filter for column C values that are #N/A the values in column A which say #N/A in column C are not in column B.
An alternative approach would be to move the column B under Column A and use COLUMN b to define the source ID, ID1... and then use a pivot table to show you both sets and what could be missing from each...
Notice how 5 is not IN ID while 13 is in ID but not in ID1.
also notice that duplicates on Row 5 show up as well.
One way of doing this (kind of manual) is to find the values which are duplicates (the ones that are highlighted). Then select both the columns and all the data.
Then go to: Home > Editing group> Sort & Filter > Filter
There should be small, down arrows on the column headers. Then you can un-check the duplicates.
EDIT
Thanks to xQbert for pointing out my mistake. Here is a way to solve this:
If possible, you can move the second column to another worksheet. Now use the following formula in a column next to the first column:
=COUNTIF(Sheet2!A2:A5,Sheet1!A2:A5)
Just change the cells to the ones for your table. The first parameter is the second column (which you should have put in the new sheet). The second parameter is the first column which will be highlighted. This will put a '1' next to each value which is duplicated.
Then you can use conditional formatting to highlight the cells with a '1' next to them using this formula in the "New Rule":
=B2=1 That is the cell number of the first cell in the first column. It should be highlighted to the colour you set it to. To copy the formatting to the rest of the cells, click on the first cell B1. Then go Home > Format Painter. Drag the formatting to the entire column.
You can then use the filter to show only the cells with "No Fill"
You will have to do the same for the data in the new sheet.
This was a very 'hacky' solution but it's what is possible.

Resources