Can I use Excel CELL output in function calls - excel

I have 2 columns (A & B) of non unique Names and Values, sorted alphabetically by Names. From this I make a column of unique names (J).
For each unique name I get their first and last cells in column A using
Start Cell: CELL("row", INDEX($A:$A,MATCH($J2,$A:$A,0)))
End Cell: CELL("row", INDEX($A:$A,MATCH($J2,$A:$A,1)))
So I end up with columns J, K and L:
J K L
Name1 1 10
Name2 11 27
So I now know
Values data is in column B
the start row is 1 and end row is 10
I want to get the minimum for B1:B10
I can concatenate the string "=MIN(B1:B10)" but how can I execute it in a cell?

Related

String compare value and pull exact value of cells from other columns and copy to new cell

I am trying to make a statistics table for a set of data and would like a formula that would find exact matches in string values in a particular column and pull the data from another column of that row if there is a match.
Basically, if "Name_1" appears in column X, copy the value of column Z from that row and paste it to a new cell.
=IF(AND(Data!N:N,"*Name_1*",Data!O:O,"*HE*"),
VLOOKUP(AND(Data!N:N,"*Name_1*"),Table2,15,FALSE))
I have multiple conditions that I would like the formula to check first before pulling the data.
If the cell in column N contains the name & if column O contains "HE" THEN,
copy value of cells found in column O (without repetition).
EDIT:
I am keeping track of the number of times (for example), CH appears in column N and the string value of the cell in the next column O. So I have a counter that counts every time CH appears - and the type of human error that has occurred (which is data in Column O).
Example of expected output:
USERS
ERROR TYPE
CH
HE1
KL,LT
HE3
CH
ABC
CH, KL, LT
HE1,HE2
Here, total count for CH is 3, with 2 involving HE1 and HE2 and 1 involving ABC (based on example).
Count for KL is 2 involving HE1, HE2 and HE3
Count for LT is 2 involving HE1, HE2 and HE3.

Excel 2019: Copy data from sheet2 columns B, C, D to sheet1 columns B, C, D based on value of sheet1 column A

I have the following conditions:
I have a Workbook with 2 WorkSheets named Data and Users
In Data, I have column A populated with numbers ranging from 1 to 9999999
In Users, I have column A populated with numbers ranging form 1 to 9999999
In Users, I have multiple rows of each of the numbers (example 10 rows of 1, 18 rows of 2, 32 rows of 3, etc.)
In Data, cells B, C and D are empty
In Users, cells B, C and D contain email, first name, last name
What I am trying to do is to copy Users : B, C and D values to Data : B, C and D empty cells.
I'm trying to use the INDEX and MATCH functions, but cannot get it to run - continually getting errors.
Here is an example of what I've tried in a test cell in my Users sheet:
=INDEX(Users!A:A,MATCH(1,(A2=Data!:A:A),0))
So, to clarify.
I have:
Users sheet:
A B C D
1 me#me.com First Last
Data sheet:
A B C D
1
1
1
1
My objective is to populate every row in Data with the values of Users B, C and D whenever the value in column A matches.
The end result would look like:
Data sheet:
A B C D
1 me#me.com First Last
1 me#me.com First Last
1 me#me.com First Last
1 me#me.com First Last
Thanks in advance.

Fill values from a list with conditions -Excel

I need to produce a formula, that can generate a list that follow to the below conditions,
Each letter can only appear in the same column again once the every letter in the list has been used.
If letter is in row 1 column 2 it can't be in row 2 column 1.
The same letter can't be in both columns at the same time.
Example,
List: A,B,C,D
Result,
Column 1 Column2
Row 1 A C
Row 2 B D
C A
D B
A C
Put your list in column A
then put this in the first cell, copy over one and down as far as desired:
=INDEX($A:$A,MOD((ROW(1:1)-1)+(COLUMN(A:A)-1)*2,COUNTA($A:$A))+1)

Counting instances across ranges in columns

I am creating a spreadsheet for my personal use. I need to count the number of times one column's values are equal to an adjacent column's.
Is there any way to do this in Excel without having to modify the formula every time a new row is added?
If you have column A and B now, add column C:
Column A Column B Column C
1 2 =countif(B:B, A1)
2 2
3 1
Then just copy the first value in column C, select the entire column C and paste :)
You will get:
Column C
1
2
0

How to concatenate columns in excel using a formula having conditions?

I want to concatenate columns A, B, C and D in column E. But the concatenated cell should contain the data of all the columns with some extra text.
e.g. Suppose column A contains "11/01/1997", B contains "ABC", C contains "20" and D contains "B+". Then E should contain "DOB: (data of A column), Name: (data of B column)" and so on.
Unless I have misunderstood:
In the top row with data in (could be row 1 or row 2 if you have headers on the data)
Put = "DOB:" & A1 & ", Name: " & B1 ...
(Substitute 1 for 2 or whatever row you are on)
Drag this formula down the e column - this should do it for each row.
Ok?

Resources