enter image description here
I have such condition and I want to get those cell Ids which are intersected with line so is there any relation to compute this condition fast and efficiently. Cells may be cuboid, tetrahedrons etc.
Related
I am trying to record the data from a lever press on an Arduino, and transfer it into Excel. Because the Arduino records data in milliseconds when a button is pressed the data looks like this.
(the picture does not show the whole data string but after the lever is released it goes back to 0;1)
So every time the lever is pushed the first number changes from a "0" to a "1". Because I am only trying to find the number of times the lever is pressed, I need to find how many of these "chunks" of "1"s there are (which will give me how many times the button was pressed then released).
I am trying to find a way to select each group of ones in Excel and translate them into another single cell in another column with the value "1", that way I can then just calculate how many "1"s there are in the other column to find the total presses.
You could do:
=SUM( --(FREQUENCY( IF(A1:Axxx="1;1",ROW(A1:Axxx)), IF(A1:Axxx="1;1",0,ROW(A1:Axxx)))>0) )
where A1:Axxx is your range of values. This creates a frequency array based on the number of contiguous "1;1" in your data. e.g. in the pattern shown in the image below, it would create 0..0,3,0..0,4,0..0,1,0..0,2,0..
It then tests if these array values are greater than zero and coerces the results from FALSE/TRUE into 0/1 by using --(formula), so the array now looks like 0..0,1,0..0,1,0..0,1,0..0,1,0... Then the SUM adds up the ones and you have your answer in one cell.
Depending on your version of Excel, you might have to enter the formula with CTRL+Shift+Enter because it is an array formula.
I would make an adjacent column and do something like:
=IF(AND(LEFT(A1,1)="0", LEFT(A2,1)="1"),1,"").
Next I would drag down the formula down, and then sum the resultant range with =SUM(B1:Bxx).
Can anyone help me with the answer to the below attachment?
Thanks in advance.enter image description here
Easy solution: in the sell to the right of the Emp. number in yellow, you have a match function: =Match(MATCH(J4,$D$4:$D$23,0) this will return a number that should equal the S.R. Number in the far Left column of your table.
Based on the SR number, you perform a VLOOKUP for the remaining three metrics. Since the columns in the table can not be altered, I also presume that the table must remain sorted by the SR Number. If that is the case this should help.
=VLOOKUP($K$4,$A$4:$G$23,2,TRUE)
This would return the names.
If this table is being presented to people, and you don't want them to see a random number in the Cell next to the employee code, the you can either hide the column, or you can change the text to white.
Below is what the final would look like. (I just entered the data to represent something close to what you were working with)
enter image description here
I need a formula which will automate the following logic:
Columns J16:z200 holds values to populate based on an IF Statement. All of them have formulas, some of them have output of a zipcode, and some of them are blank.
The intended goal is to capture the number of unique zip codes within a county that is providing sales leads for a sales team...typical counting formulae don't filter for duplicates so I ended up with:
=SUMPRODUCT(((J16:J199<>"")/COUNTIF(J16:J199, J16:J199 &"")))
...which seemed to work until I went to validate the data, which is where it gets weird. In the image (it's a really large spreadsheet so I'm just giving you a snapshot of the relevant fields)
1-the gray line is the tally of the number of leads in a county
2-the pink line is the tally (supposedly) of unique zipcodes within that county
Line2 should always be equal or less than line 1... no exceptions...but, if you look down at the county count outputs, you can see that the tally output is not accurate. And worse than that, it's right in some places, and wrong in others/off by 1, which makes ZERO sense.
page snippet
Each of the white fields has a formula similar to this =IF(AND($B$16="County",J3="County"),$E$16,"")
Each column with a different county name plugged into where it says "County"
I'm thoroughly confused.
Snippet 2 - using frequency
Presume in the white cells you will either have a numerical value (zip code) or blank returned by a formula,
Try
=SUMPRODUCT(IF(FREQUENCY(I3:I12,I3:I12)>0,1))
A useful link for you: Count unique values among duplicates
I have the following spreadsheet on the image (please click on link below for image):
Raw data and categorised data
Suppose I have the raw data Name B4:B11 and Interests C4:C11.
My question is I want to categorise the raw data so the output is as pictured in B16:B34 and C16:C34. I am trying to categorise people by their interests when their interests are in a column containing strings separated by semicolon. The Name can come up multiple times according to their interests where in this case Movie, Music and Radio.
Please kindly assist. Thanks kindly.
This formula will work as in the picture below.
This will need to be entered as an array formula (when in the formula bar hit Ctrl+Shift+Enter)
=IFERROR(INDEX($B$1:$B$11,SMALL(IF(ISNUMBER(SEARCH(B$15,$C$1:$C$11)),ROW($C$1:$C$11)-ROW(INDEX($C$1:$C$11,1,1))+1),ROW(1:1))),"")
Array formula's break down ranges and calculate them them one cell (or row) at a time.
The SMALL formula (=SMALL(array,k)) will use the array results of the IF formula. The IF formula is returning either FALSE (default) or the row number when the text can be found in the cell using search, I have used =ISNUMBER to force true false rather than it throwing any errors as if it finds the text it will give a numeric value as the starting position of that string in that cell.
The SMALL formula puts the results in the array in ascending order and will only call on actual values (not FALSE) so I have used ROW(1:1) at the end of the small formula for the k part: When the row automatically increases to the next number, the next highest result is displayed.
I hope this helps explain the logic used.
I am trying to delete a large number of cases (Tweets) in excel based on certain words. Only one word has to be present for me to delete it.
example:
blue big bird
orange bird flies
elephant is angry
cool cat in tree
List of words I would want to delete on: bird, blue and cat. Therefore, the function should delete 1. 2. and 4, no matter if all words are present, or only one or two. Currently I only know how to format it based on one word, but I have roughly 50 words per file to filter on, so it would save a lot of time to have a function. I am not sure which function works for this? I already have a list of the words I want to delete on in another spreadsheet.
The formula you are searching is
=IF(SUM(COUNTIF(B2,"*"&{"cool","orange"}&"*"))>0,B2,"")
where B2 is a cell in the row with your values (e.g. 1. blue big bird).
Apply this for every cell and you get the cell value for every hit and "" for no hit.
If you already have a list of words in a spreadsheet, you can assign that list a range name, since 50 words are a bit much for a formula and hard to maintain.
Consider the following screenshot. The highlighted range has the range name TriggerWords.
The formula in cell B1 is
=IF(SUM(COUNTIF(A1,"*"&TriggerWords&"*"))>0,"",A1)
which is an array formula that must be confirmed with Ctrl-Shift-Enter. Then copy down.