I have a simple table with 2 columns Property Name and Value which display the properties of the selected object. It is working fine.
The properties could be things such as name, height, width, colour.
I would like the user to be able to edit the cells, but the appropriate formatter to apply to the cell they are editing.
For example, if editing the name cell it would just be text. height would be numeric, colour would be colour, visible maybe a tick/cross or a select.
Looking at the documentation it is geared (sensibly) to have 1 formatter to a column as it assumes that columns data will all be of the same type.
Is it possible to have a mix of formatter types for a single column?
You can only assign formatters at the column level not the cell level, but there would be nothing to stop you creating your own custom formatter function that output the correct formatter element depending on the type of cell it was applied to.
There are detailed instructions on creating your own custom formatters in the Custom Formatter Documentation
Related
I'm, looking for a way to return an array of text based off of titles or headers if you will. My brain isn't working today and I keep struggling to find the best method. I originally was going to have a bunch of IF statements and ran into problems, and I can't seem to figure out if Aggregate is a viable method.
Essentially if "Title 1" is selected from a drop down I would like to return the names within Title 1, and so on. If "All" is selected I would like all to populate from each title. The speed bumps I have is that some names repeat and I only want to show each name once always in alphabetical order. Can someone please get me started on how to tackle this?
In Excel O365 with the FILTER function, you can do this with a helper column (which you can hide, or position elsewhere).
I created a Table and am using structured references, but you can change to ordinary addressing if you prefer.
TitleList is a named range that includes all or your titles (presumeably you will use this for your dropdown).
For the Helper Column, I have it adjacent to your Names column with the formula:
=IF(OR(A2=TitleList),ROW(),B1)
This creates a unique number for each title.
Then, for your formula, under the dropdown, you can use:
=FILTER(Table3[Names],(Table3[Names]<>G1)* (Table3[Index]=XLOOKUP(G1,Table3[Names],Table3[Index])))
where G1 contains the dropdown
With Column B visible:
Some with O365 do not have the FILTER function. If you do not have the FILTER function, you can use:
=INDEX(Table3[Names],AGGREGATE(15,6,1/(INDEX(Table3[Index],MATCH(G1,Table3[Names],0))=Table3[Index])*ROW(Table3)-ROW(Table3[#Headers]),ROW(INDEX($A:$A,2):INDEX($A:$A,COUNTIF(Table3[Index],INDEX(Table3[Index],MATCH(G1,Table3[Names],0)))))))
EDIT
To return a non-duplicate list of ALL of the names, add ALL to TitleList and use this formula instead.
This formula makes a special case for ALL and filters out the rows that contain a Title
=IF(G1="ALL",UNIQUE(FILTER(Table3[Names],COUNTIF(TitleList,Table3[Names])=0)),FILTER(Table3[Names],(Table3[Names]<>G1)*(Table3[Index]=XLOOKUP(G1,Table3[Names],Table3[Index]))))
.imgur.com/apkHh.png
I have aN Excel doc which contains several dropdowns in a row. Like this..
|DROPDOWN1||DROPDOWN2||DROPDOWN3||DROPDOWN4||DROPDOWN5|
The ordering is important as the dropdown values relate to specific parameters in a JavaScript query string.
DROPDOWN3 has about 15 possible values, but one of these values dictates the value that must appear in DROPDOWN1.
EG - If the value of DROPDOWN3 is 10, the value of DROPDOWN1 must be 5
My question is thus...
Is it possible that when the crucial value of DROPDOWN5 is selected I can force the selection of the dependent value in DROPDOWN1, as in conditional formulae?
Thanks in advance.
I am trying to alter a chart legend / series name to concatenate some additional text to the series label from the original data set. Following the instructions found here, I get to the Select Data Source dialog, where I select the legend entry I want to change from the Legend Entries (Series) box, and then click Edit. That brings up this dialog:
What I want to do is concatenate some words to the original series label coming from that DATA!$C$3 field, like so:
However, when I do that, I get the familiar "The formula you typed contains an error" dialog. This to me is strange, because what I have there is a legal formula. It's almost as if only a subset of the formula syntax is supported in this dialog.
Is there a correct syntax or workaround for accomplishing this?
Although Jon Peltier credits "The series formula is an Excel formula like any other." it does seem a little quirky to me. He also mentions:
The Series Name can be blank, a text string in double quotation marks, a reference to a worksheet range (one or more cells), or a reference to a named range (named formula).
For simplicity, if viable you might consider going to Data!C3 and changing whatever is there (eg x) to:
="x"&"(Rt. Axis)"
I am having a problem with my data label formatting within an excel chart. As can be seen in the image below, the chart isn't retaining the number formatting I have set in the columns B and C.
I have used conditional formatting to make it so that if a number is below 0.01 it is displayed as a scientific e.g. 5.E-05 to 2 DP. And I've also got another rule that keeps all the numbers to 2DP if they are over 0.01.
I've already tried to link the formatting back to the sources of the cells but it gives me the same results e.g. Format Data Labels >> Number >> Linked to source (ticked).
The reason I do not do this manually is because its part of a python automation project, and it would also defeat the object of my conditional formatting.
I've already seen the solution for this question but the answer was to manual change it and again wouldn't allow me to use my conditional formatting.
Excel Chart doesn't keep format
See link for image below.
https://www.dropbox.com/s/45gmvtjqgd0y8e0/thing.png
Thanks in advance
Instead of using Conditional Formatting you can use custom number formatting which should flow through to the chart.
Select cells you want to format
Right Click > Format Cells
On the Number tab, select Custom
In the Type: field enter the following
[<0.01]0.E+00;0.00
This will format anything less than .01 as Scientific, and anything else by a number with 2 decimal points.
I'm trying to set up a Data Validation cell in a spreadsheet for one of our clients to use.
Basically, the end result should be a dropdown menu if the first cell in the row (A#) has a value, and NULL or "" otherwise.
I can achieve this using a reference to cells, such as:
IF(A1<>"",AA1:AA3,AA4) --> AA1:AA3 contain our three selections, AA4 is blank
The reason I would like this to be 'self contained' is because we are going to programmatically convert the spreadsheet to CSV, and import values into our SQL database. I don't want to write exception code for the unwanted values if I don't have to ^_^ one more thing to break...
Ideally, it would be something like this:
IF(A1<>"","Telephone Presenter (Partial Rights),Attendee,Presenter (Full Rights)","")
Is what I'm asking for achievable, or should I consider the exception code or maybe writing my own program for them to input the data into?
EDIT:
Cell A1 contains an individual's name (EG John Doe), the D.V. occurs on D1, where I want "If a name is specified, offer roles to assign, otherwise, offer only a blank cell."
This should work if you're just looking to flag the cell in the event of a data integrity error.
=IF(OR(A1="Telephone Presenter (Partial Rights)",A1="Attendee",A1="Presenter (Full Rights)",A1=""),"","Error")
You could also consider using conditional formatting on those input cells (for example highlight red when bad data is entered), or look into writing some VBA code for more robust data integrity.