Excel Formula if the value of a cell in one column stays the same but the value in another changes then show me - excel

I hope you can help. In Screen Shot 1. You can see that the number 4424383
in column Y appears 6 times from row 2 to row 7
In column U you can see the numbers 12345 and 76259 and they also appear from rows 2 to 4 and 5 to 7
What I need is a formula that can produce a piece of text that says "Investigate" in column Z, if the number in Column Y stays the same but the number in Column U changes.
If you look at Screen Shot 1 you will see the green number 4417458 in column Y and the green number 76260 in column U this DOES NOT need to be investigated.
Like wise with the purple numbers
Its only when the HUB_PARTY_ID or Y number continues to be the same but then the MTNG_ATNDEE_ID or U column number changes that I need "investigate" to appear in the Z column.
as always any and all help is greatly appreciated.
Screen Shot 1

This should do it:
=IF(Y2=Y1,IF(U2<>U1,"Investigate","Cool"),"Cool")

You can use the below formula starting with the third row of column Z
=IF(AND(Y3=Y2,U3<>U2),"Investigate","NA")
Result:

Related

Index Minif excel

I need a formula that looks for a value in column A, finds the smallest value of that row and displays the corresponding value of a row on the top of the sheet (row 3 in my case) where the smallest value has been found.
also would like to find the second and third smallest value and display the value of row 3.
For example: I need to lookup X in the first column, find the smallest value in that row (1) and display the value on the row on top of that column (D)
and second smallest value for X to display C, third smallest for X to display E.
enter code here
A B C D E F
Z 6 8 9 5 2
X 7 2 1 3 7
Y 9 2 6 1 6
This codes should work:
=INDEX($B$2:$F$2,MATCH(MIN(IF($B$1=$A$3:$A$5,$B$3:$F$5)),INDEX($B$3:$F$5,MATCH($B$1,$A$3:$A$5,0),),0))
!https://imgur.com/2YFu39E
Suppose your data are in range A1:F4 as shown below:
You can use the following formula to find the 1st, 2nd and 3rd smallest value in the row starting "X". Put it in Cell I2 and drag it down.
=SMALL(INDEX($B$2:$F$4,MATCH("X",$A$2:$A$4,0),),H2)
Then you can use the following formula to find the corresponding value in the row starting "Z":
=INDEX(INDEX($B$2:$F$4,MATCH("X",$A$2:$A$4,0)-1,),,MATCH(I2,INDEX($B$2:$F$4,MATCH("X",$A$2:$A$4,0),),0))
It is basic INDEX+MATCH approach. If you have problem understanding the solution, I suggest you to google some online tutorials on the use of INDEX+MATCH. SMALL function is used to find the nth smallest value as requested.
Cheers :)

Excel Arrange multiple Columns

I have a data like this in excel:
1 1
1 2
2 2
3 2
And I want the result to be displayed like this:
1
1
1
2
2
2
2
3
Its like a ascending sorting. If the number in columnA <= columnB, it will be display first, at the same time, columnB will have a empty cell or blank value.
I have looked for this for a while but no one has the problem like this.
I would prefer a formula rather than VBA code.
Please advise, thanks!
Edit: I hope this explanation will be easier to understand
Data (A1:B2) - Result (C1:D4). Each number in Data (A1:B2) is a result of complicated formula so I cannot change its position
A B C D
1 1 2 1
2 3 4 2
3 3
4 4
Honestly, if you want to avoid VBA, here's a manual process that would give you the results you want:
Color each column (ie. Column A Red and Column B Blue)
Place values of column B under column A
Sort & Filter by Sort Smallest to Largest
Copy the contents of column A to column B
Last for Column A Find and Replace all* with format Blue then do the same for column B only with format Red. (See below for more info on how to do that).
Following those steps isn't the most conventional, but it will give you the results you wanted without VBA.
*Find and Replace based on font color:
1. Press Ctrl-H
2. Click Options
3. Click Format > Font > then select your font color > OK
4. With the Find What blank with the font color and the Replace With blank click Replace All.

how to populate an excel cell using multiple =IF function

I have a column that displays data in each cell.
What i want to do in another column is display certain figures based on the data in the other column
eg:
Column W Column X
-0.5 0
564.3 564.3
5000 >4800
If the data in column W is equal or less than 0 i want the number in column X to read zero.
If the data in Column W is greater than 0 but less than 4800 i want the number displayed in Column X to read the same number as in column W, and
If the data in Column W is greater than 4800 i want the number in Column X to read >4800.
I have =IF((AND(W222>4800,W222<0)),">4800","0") working so far to the less than 0 and greater than 4800, just can't get the numbers greater than 0 and less than 4800 to display in column X.
Consider:
=IF(W222>4800,">4800",MAX(W222,0))
Try this
=IF((AND(W222>4800,W222<0)),">4800",IF((AND(W222<4800,W222>0)),W222,"0"))
Thanks for the responses. I have the numbers in Column W >4800 displaying >4800 in Column X, and the numbers below 0 in Column W showing 0 in Column X using =IF(W222>4800,">4800",MAX(W222,0))
what i need now is that if a number in Column V is >0 i need the cell in Column X to show "+IVE" but still have the same responses to the
=IF calculation above.
Reminding u - "-7" is at "W3",
This works for u!!

Excel how to change column numbering by adding a number to the column

I need to drag cells which equal values of columns which have a distance of for example 4 columns horizontally. Is there any way to add a number for example in column A to get column E?
Example:
A B C D E F G H I J K
1 2 2 3 4 1 5 6 9 1 2
I need the values only of columns A, E and I in other cells which are at the right of these cells without leaving empty cells and by dragging horizontally.
A wax to do this is to change the numbering of the columns from letters to numbers (file->options->formulas->work with formulas-> tick the first field Column Line).
Then the programming with numbers is easier than using commands to change the column letters in numbers and vice versa. To change the column letters into numbers can also be done with thefunction column. However the inverse function of this is a combination of functions and it is quite difficult to do.

Excel - Formula or Macro to fill a cell based on another cell that links to yet another cell

In Excel, I am trying to make a cell based of the values contained in two other cells.
I need Cells X and Y to have data based on Cells L and #, like so....
X Y L 1 2 3 4 5 6
A 6 1 1 6;1 6;1 7;1 7;2 7;2 8;1
B 7 2 4 6;1 6;1 7;1 7;2 7;2 8;1
So row A, has columns X and Y filled based of the values in the number columns. The specific number needed is what is filled in in column L.
I am not sure the best way to phrase this question. If my example doesn't make sense, I can try to clarify or provide more examples.
I have no idea if this can be done with fancy formulas or with a VBA macro or two. I am an excel noob.
If I've understood your question correctly you can do this with a combination of Left/Right, Index and search.
In my example images, the user inputs their value in column D, and then columns B and C use the formulea
=LEFT(INDEX($F2:$K2,1,$D2),(SEARCH(";",INDEX($F2:$K2,1,$D2))-1))
=RIGHT(INDEX($F2:$K2,1,$D2),(SEARCH(";",INDEX($F2:$K2,1,$D2))-1))
respectively
Here, the Index function returns the correct column to look at (i.e. the value chosen by the user, the Search function finds the position of the semi-colon, and the left/right functions return the values either side of the semi-colon.

Resources