Basically i have a set of data (applications) and i am trying to have a formula which can automatically turn it to a yes for a higher level review based on every 1/10 * 680 (applications)
SO basically If column A says Yes then turn Column B to Yes aswell
But also turn COlumn B to yes if its every 6th or 7th row
If Cell A1 = "Yes" and if "Yes" for every 6th row then in Cell B1 paste:
=IF(A1="Yes","Yes",IF(MOD(ROW(A1),6)<>0,"","Yes"))
Related
I am trying to achieve this task in Excel. In column 1, I look up each letter, and return the values (yes or no) in column 2. If there is one value is yes, then it is yes for that that letter, otherwise it is no.
The second part is fairly easy. Once I have the range of cells for each letter, then I can use COUNTIF and IF. However, how to do return a range of cells in column 2 based on column 1? Match or lookup functions stop when they find the first match, but I need the function to go through all the values in Column 1 and return all the matches in Column 2.
A Yes
A No
B Yes
B Yes
B No
C No
C No
This can also be multiple values for example
A Yes
A No
A Unknown
A
I expect to get a table that is
A Yes
B Yes
C No
If I understand correctly, something like:
=UNIQUE(A1:A7)
to return the unique values from column 1,
and
=IF(COUNTIFS(A1:A7,D1#,B1:B7,"Yes")>0,"Yes","No")
to return Yes or No.
Ok I have 2 excel columns
1st column A "Workstream", is a data list with three numbers as a dropdown. 1,2,3
2nd column B "ID", would like to auto-populate based on the selection made from the left adjacent cell + perform a lookup to get the MAX number in the current column and ADD by 1.
For Example:
Workstream
ID
1
W1-001
1
W1-002
1
W1-003
1
W1-004
2
W1-001
1
W1-005
2
W1-002
So when a user selects from the drop-down in column A then Column B auto-populates with something like this
="W"&A:1&"-"
However, in order to complete the value, it needs to do the following:
="W"&A:1&"-" Search for the Max Record in Column B that starts with 1 or whatever value was entered into Column A, then include the next number based on the MAX value selected in Column A
So in the above example, let's say I Enter "2" in column A, then the value that auto-populates in column B would be
| 2 | W2-003
or if I selected 1 from column A given where we left off then the value that would auto-populate in column B would be:
| 1 | W1-006
If I am understanding correctly and you want the format to be "W" followed by number of the workstream (as inferred from the text of your question) try:
="W"&A2&"-"&TEXT(COUNTIF(A$2:A2, B2), "000")
If instead you want the output exactly as shown in the picture you provided, it's even easier:
="W1-"&TEXT(COUNTIF(A$2:A2, B2), "000")
EDIT: You might consider pre-dragging the formula to all the rows that you think have the possibility of being impacted so that you don't have to drag the formula each time you add a row. In that case, try:
=IF(A2="","", "W"&A2&"-"&TEXT(COUNTIF(A$2:A2, B2), "000"))
B1 is a checkbox. If checked B1=1. A1 can range from 0 to 10. If B1 is checked I want A1 to automatically = 10. Exactly like conditional formatting would turn it green. I cant put the formula =IF(B1=1,10,"") into A1 though because I need to be able to input other values in A1 without erasing the formula. I need to be able to reuse the sheet multiple times.
Ex.
A B
1 10 x
2 9
3 10 x
4 4
As Scott commented, you'd need to use VBA to do exactly what you're asking. A work-around, though, would be to add a third column with:
=IF(B1="x",10,A1)
In this case, Column A would be the user-inputted number, Column B would be your "x", and Column C would give the final output: 10 if B has "x", and the number from A otherwise.
A B C E F
1 Bob ------Chris-------Taylor---------Joe
2 Cake -----Fruit -------Chocolate---Eggs
3
4
5
How do I go about using a formula that will always choose the last cell in row A1:F1?
How do I get the value of the cell on row 2 that is the last cell with data? (in my case, Joe)
Thanks in advance.
If you have text values in A1:F1 as per your example you can get the last one with this formula
=LOOKUP("zzz",A1:F1)
Another way (assuming there is no blank cell inside the data)
=INDEX(A1:F1,1,COLUMNS(A1:F1)-COUNTBLANK(A1:F1))
The value in the last used cell in row #2 is:
=LOOKUP(2,1/(2:2<>""),2:2)
The value in the last used cell in row #1 is:
=LOOKUP(2,1/(1:1<>""),1:1)
etc.
I have a table like the one below
Place Col 1 Col 2 Col 3
1 yes yes yes
2 no yes yes
3 yes no yes
4 no no no
5 no no no
6 no no no
7 no no no
I need to select the first yes in the the first column, once selected that place cannot be used in the second or third columns. For example the first yes in col 2 cannot be 1 because it was used in column 1 therefore I select the yes in position 2. In the third column we can't select the first or second yes because they have been used in col1 and col 2 therefore the only available first in line yes is number 3. I need this to be driven by formulas i.e. change randomly the order of yes and nos but never have the same yes selected in the same position regardless of column.
For example we can show the yes positions down the bottom like
Col 1 Col 2 Col 3
1 2 3
Under the column 1, use this formula:
=MATCH("yes",B$2:B$8,0),
where B$2:B$8 is the data in the first column.
Under the column 2, use this formula:
=MATCH("yes",IF(ISERROR(MATCH(ROW(C$2:C$8)-ROW(C$2)+1,$B$12:B$12,0)),C$2:C$8,"no"),0)
where B12 is the cell with the first formula.
Make sure you press Ctrl+Shift+Enter to enter this formula.
Drag the second formula to the right for as many columns as you want.