Show icon on next empty line in Excel - excel-formula

I'd like to show an arrow icon beside the next line for data entry in a tracker I'm working on. In this example, if row 6 is the next line to add information (text) in cells C6 to H6, show an arrow in B6. Once there is text in C6, B6 should be blank and an arrow show in B7 (B8 through would also be blank at this point). This is what I have in B6 but the arrow remains even after entering text in C6 and the subsequent B cells with this formula also have arrows:
=IF(AND(C5<>"",C7<>""),"","▶")
I'd like an arrow only in one B cell at a time, please :)

Test the one above and the one beside:
=IF(AND(C1<>"",C2=""),"▶","")

Related

Identify minimum and maximum values based on 3 criteria

In the table shown, I need a formula for column D that will indicate the first date (minimum) and most recent date (maximum) that each participant (in column A) took survey A (in column C). Column D would need to indicate "first" and "last" tied to the Participant ID--for example, I would want D2 to populate with "3Last" and D5 to populate with "3First." Column E displays what I would need column D to display. If it's not a first or last date (something in between), or if it's not survey A, the cell in column D would be left blank or 0. If there is only one date that meets the criteria, it should return "First" rather than "Last." I'm pretty stumped on this one... Any help is much appreciated!
In E2, insert the ARRAY formula listed below. If you have never used an array formula, follow these steps:
select the formula from this page
copy it
go to excel
select cell E2,
press the 'F2' key
paste the formula
press CTRL+SHIFT+Enter (instead of just pressing enter)
To copy down, follow these steps:
Copy cell E2
Move down to cell E3 (instead of selecting a range)
Paste in cell E3
Select your range and paste from there.
If you don't copy down in this manner, it will tell you that you cannot change the array...
=IF($C2="A",IF($B2=MIN(IF(($C$2:$C$7=$C2)*($A$2:$A$7=$A2),$B$2:$B$7)),CONCATENATE($A2,"Last"),IF($B2=MAX(IF(($C$2:$C$7=$C2)*($A$2:$A$7=$A2),$B$2:$B$7)),CONCATENATE($A2,"First"))),0)
HTH

Highlight duplicate value by range in Excel

I have a worksheet:
I need type value into 2 columns: [Supervisor 1] and [Supervisor 2] by condition:
1. Value into [Supervisor 1] column and [Supervisor 2] column must different. If the value is the same so highlight red color (both of them)
Ex:
In D3 cell, I type "John" value. In E3 cell, I type "Susan" value -> No highlight red color
In D3 cell, I type "John" value. In E3 cell, I type "John" value -> Both of D3 and E3 cells highlight red color
In D4 cell, I type "John" value. In E9 cell, I type "John" value -> Both of D3 and E3 cells highlight red color
2. The highlight red color just occur in range on this day
Ex:
In D3 cell, I type "John" value. In E10 cell, I type "John" value -> No highlight red color
In D21 cell, I type "Mary" value. In E13 cell, I type "Mary" value -> No highlight red color
Please help me this problem
--------------------I updated my expect result--------------------
I have a image (my expect result)
In E5 cell, after I type "Louis" value -> highlight red color. Because value in E5 and D4 the same (Note: on this day)
In E7 cell, after I type "Nemo" value -> highlight red color. Because value in E7 and D7 the same (Note: on this day)
In D15 cell, after I type "Messi" value -> highlight red color. Because value in D15 and E12 the same (Note: on this day)
In D15 cell, after I type "Messi" value -> highlight red color. Because value in D15 and E12 the same (Note: on this day)
In D11 cell, after I type "Susan" value -> NOT highlight red color. Because value in D11 and D6 the same but different day exam (Note: on different day)
In E21 cell, after I type "Chen" value -> highlight red color. Because value in E21 and D21 the same (Note: on this day)
If you need to pick up any match between the two columns within the same day, and the day always takes 7 rows, try
=SUM(--ISNUMBER(MATCH($D3:$D9,$E3:$E9,0)))
The formula can be changed if my assumptions aren't correct.
EDIT
If you want to highlight the name in column E if it also appears in column D on the same date, it's just a COUNTIFS
=COUNTIFS(A:A,A3,D:D,E3)
EDIT 2
To highlight the second occurrence only of the name for the same date, you would need two formulae
=COUNTIFS($A$2:$A2,$A3,$D$2:$D2,D3)+COUNTIFS($A$2:$A2,$A3,$E$2:$E2,D3)
for D3:D23
and
=COUNTIFS($A$2:$A3,$A3,$D$2:$D3,E3)+COUNTIFS($A$2:$A2,$A3,$E$2:$E2,E3)
for E3:E23.
This isn't too hard to do... the key insight is that you can use a cell-relative formula within a conditional formatting rule. (You'll need two... one for each cell to check if it matches the other in the pair. If they match, then that triggrs the conditional format.)enter code here
I have your solution:
Select the whole range for Column D (looking the picture, I will assume its D3:D23.
In Ribbon, select Home > "Conditional Formatting" > New Rule.
Select Option: "Use a Formula to determine which cells to format".
In "Format values where this formula is true" add the following formula: =IF(D3<>0,IF(D3=E3,1,0))
Select the format you want for the cell, clicking in "Format", if D and E are the same and press "Ok".
Now do the same steps for Column E (selecting the whole range for column E), but instead add the following formula: =IF(E3<>0,IF(D3=E3,1,0))
This should definitely solve your issue. If there is a question, please let me know.

Excel Transpose and Link Simultanously

I know how to link on cell to another so that its content changes to match the source cell.
I know how to transpose a row into a column.
Is there any way to transpose a row into a column with links that dynamically adjust to match their source?
Try locking your cell references before transposing them. Turn your formula from:
=B2
to
=$B$2
If you do not add the $ to the row and column part of the cell address, the address will change during the transpose operation.
In my example, I filled the cells A1 to E1 with their a1 to e1 to match their cell address. In the row below, I put =$A$1 in A2 and so on to =$E$1 in E2. You will notice the formula for E2 in the formula bar from this screen shot:
I then selected the cell for the top of my transposed column (in my case C4) and right clicked and selected paste special: (note there is a short paste transpose, but I cold not get the right click menu to screen shot)
And here we see the transposed column with the formula in C4 is =$A$1 and the formula in C8 is =$E$1

Inserting values in libreoffice / excel without using autofill

I have a libreoffice sheet that I would like to have the rows increase by 1
example:
1
2
3
4
The problem is I know I can do this with autofill but I have 50000 rows and dragging down takes awhile.
Thanks
Assuming that you already have data up to row 50'000, and you have an empty column (I'll use Col. A) for the series.
Jump to the last cell in one of the "used" columns Ctrl + Arrow down (or scroll all the way down to Cell A50000) then move sideways to Col. A and place an "X" in cell A50000. You now have an empty column A, with an "X" in cell A50000.
Go to cell A1 ( Ctrl + Home ). Put the number "1" in cell A1. Put the following (secret!) formula in cell A2:
=A1+1
Copy cell A2 with Ctrl+c
Stay in Cell A2...
Press Ctrl+Shift+Arrow down, The area from A2 to A50000 should now be highlighted.
Press Ctrl+v to paste the formula all the way down...
IMPORTANT!
Press Ctrl+c to copy the just pasted data (A2..A50000).
Press Ctrl+Shift+v to paste the just copied data "over" the original data with "paste special".
In "Paste Special" make sure that you have NOT selected the option: Formulas.
This will now paste all the results of the formulas back as fixed numbers.
This should take less than a minute, of which most of it is waiting for the system to calculate and to paste (I tried it for 1 mio lines..)
By just changing the formula from =A1+1 to =A1+2, jou can jump with 2, so 1,3,5,7,... But I assume that you'll use this column as a reference for sorting, so you can always go back to the original order.
Have fun!

Getting value from reference cell's next cell

In a nutshell, I have the following table:
I am using the reference to A2 cell in A15 cell and I am trying the B15 and C15 to show the appropriate numeric values showin in B2 and C2.
How can I archieve it?
Click on B15. In the cell border, drag the square to the bottom right over to C15 and let go. Done.
This question belongs on SuperUser
Theres an easy way to do it
set A15 = A$2
select A15, while clicking A15's lower right corner drag the cursor(cursor will change into a '+') to C15, values will automatically filled in.

Resources