How can I tell if an element in a list is included in another list? (in openoffice calc) - openoffice-calc

How can I tell if an element in a list is included in another list? (in openoffice calc). I have a list of books in our library and a list of books that were banned and I want to find the books we have, for banned book week.

You could try this: =COUNTIF(C$2:C$5;A2) in cell B2, this checks the banned list (C$2:C$5) against the first item (A2). By putting $ signs in front of the row numbers, the banned list will reference will remain at C2:C5, otherwise the banned list would "move down" when you copy the formula from Cell B2 down to B3....all the way down. The formula in cell B3 would look like this: =COUNTIF(C$2:C$5;A3). The banned list stays the same but cell B3 now checks the banned list against the data in Cell A3.

Related

How to make Index & Match functions on GG Sheets match blank cells?

I have one table of data (A) with data values, and a second table (B) which serves as a key that categorises/groups those entries into categories.
I am trying to write a cell formula that will list the category that corresponds to the data value in (A).
Some of the entries in the data table are empty, i.e. have no input data.
Case in point:
A13 has an empty cell, according to table (B), I specifically want the blank cell to be categorised as "Other". At the moment the sheet thinks cells like these are "null" and not "blank" and therefore returns #N/A.
I have tried adding an IFERROR function, which works at this stage but does not suit the scenario where a new data entry is entered as that will initially show as "Other" too when it should be something else, so I want to avoid using:
=IFERROR(INDEX(D2:D13,MATCH(A2:A13,E2:E13,0)),"Other")
Current cell formula for col B:
=INDEX(D2:D13,MATCH(A2:A13,E2:E13,0))
Please can you help? I've found plenty of articles on how to ignore blank/empty cells, but nothing to include them.
Many thanks!
OH
Shared link of problem
Screenshot of problem
use ifna like:
=IFNA(INDEX(D2:D13, MATCH(A2:A13, E2:E13, 0)))
update:
=INDEX(IF(A2:A13="",,IFERROR(INDEX(D2:D13,MATCH(A2:A13,E2:E13,0)),"Other")))

Google Dataprep/Trifacta - Joining three datasets, de-duping but maintaining not matched records

This feels like it should be more straightforward than I am finding it.
I have three datasets/lists of customers with some overlapping data, but some customers who exist only in each of the lists.
List A: 500k records
List B: 80k records
List C: 70k records
The unique identifier/key for each is email address.
I have tried various ways of joining these - left outer, right outer, outer...
My latest attempt resulting in the largest list is to start with List A, then left joining the other two lists using the email address as the key.
But this way, I only seem to finish up with a joined list of 500k of the common records...
I feel as though it is dropping any new, unique users from List B and List C if they don't already exist in List A.
How can I join all three, achieving the de-duplication but also adding new rows for the uncommon users from B and C?
Thanks,
P
You can solve this using the following recipe:
1) Since you have overlapping data across the three datasets, take a union of the columns which are common across the lists.
2) Since the union should produce some duplicate rows, you can then remove duplicate rows which would result in each email being present once.
3) Lastly, you can then do a left join against each list to add the columns which are unique to each list.

Using Excel IF statement with drop down list

I have a fairly simple problem but can't find a solution:
I have a table with a cell that has a drop down function. The user select from that list and I want the next next cell to also be a drop down list but is dependant upon the data in the first drop down
for example
Cell A2 user selects from:
Leeds
London
Liverpool
In B2 the options are now restricted depending upon the data in A2
E.G - Selecting Leeds, returns second drop down of 1,2,3 or 4
Selecting London returns A, B, C, D
Selecting Liverpool returns Cat, Dog, Rabbit
I was looking to use Vlookup tables with an If Statement such as
=if (A2=Leeds(VLookup, C1:C4,2)
However I am hitting an impasse.
Thanks in advance
You can do this by creating named ranges (Ctrl+F3) with the precise name of the look up, e.g the group Cat, Dog, Rabbit you call Liverpool, then in cell B" in data validation select lists and for the source enter
=indirect(A2)
Please note you cannot use spaces with Named Range names so you can replace with underscores if need be.

Update a SharePoint list from another list using Nintex workflow

I have 2 lists: List A and List B.
List B is a mirror copy of List A.
Currently both lists have exactly the same content. 300 items with 40 columns per item.
I want edits to an item in List A (multiple fields changed, say 20), to be reflected in List B using Nintex.
I know I can use 'Update Item' action of Nintex but that would require me to configure logic for all the 40 fields and that would be tedious.
Is there any other shorter way to update all fields of List B when an item is updated in List A?
Well, I'm afraid not.
The only other option that is coming to my mind would be to delete the entry in List B and the use the "Copy Item" action to create a new copy of the current item.
However - depending on how frequent the items in "List A" change, you might want to implement another approach (I'm assuming you would have a workflow that kicks off automatically on change). Because if two changes happen to the same item, the first change would kick off the workflow, the second might not because the first is already running. Instead you could implement a workflow, that is creating a copy of "List A" on a regular schedule.

TFS 2010 sorting ALLOWED VALUES desc

I'm using TFS 2010.
I have a string field with a list of allowed values. When I view the work item the list is sorted alphabetically (the original list is not sorted alphabetically).
Is there any way to display the vaule order as the same given in the work item template.
Is there any way to change the sort order to desc?
I know I can write a custom control for this but I was wondering if there was any easier way.
thanks,
There is no way to sort a list of values (allowed, suggested, or even taken from a global list) in any order, but ascending alphabetically.
You do have two option though:
Add an index before each item on the list. This index would be something like "1. Banana", "2. Apple", etc. It would be permanent and would appear in the display of the list, but it is the simplest solution, if it's good enough for you.
You may create a custom control, that would appear as a drop down list, and would sort by a custom parameter that you can add to the work item type definition.
Hope this helps.