I need to look through column C and search for a text "TF06" and if that's true I need to replace the corresponding row in column D to the specific input FROM cell F2.
This is as far as I can get. Here is my code:
=IF((VLOOKUP("TF06", C2:D54, 2, FALSE)), REPLACE(ROWS(VLOOKUP("TF06", C2:D54, 2, FALSE)), 1, 1, F2), 0)
This should work...if its always F2 change it to F$2 this should be in column D if thats where you want the data to go?
=IF(A3="tf06",F3,"")
Related
I want to when the D column any cell has value empty, in the E column should be automatically come empty
Your formula compares with 0, but the cell is not 0, it is empty. You may want to check if the cell has a number, like this:
=IF(NOT(ISNUMBER(D3)),"",IF(C3>D3,"improved",IF(C3<=D3,"not improved")))
Or, a bit simpler setup:
=IF(ISNUMBER(D3),IF(C3>D3,"improved",IF(C3<=D3,"not improved")),"")
Currently trying to compare two dates to work out whether a document has been submitted within SLA dates
I have 3 cells,
H5 (SLA target date)
T5 (Document submitted date)
U5 (In SLA or Not) Y/N
Using really simple formula in
U5 of =IF(T5-H5 <= 1, "Y", "N")
But the formula is returning true down the column for cells which contain no content yet.
How do I return either a Y, N, or 0 (or blank) in column U?
=IF(OR(ISBLANK(T5),ISBLANK(H5)),0,IF(T5-H5<=1,"Y","N"))
You can change 0 with "" if you want the cell to be blank.
You should add a check for blank cells
=if(or(isblank(T5), isblank(H5)), "blank", IF(T5-H5 <= 1, "Y", "N"))
If both could be empty:
=IF(COUNT(H5,T5)=2,IF(T5-H5<=1,"Y","N"),0)
Or if H column would always be populated:
=IF(T5<>"",IF(T5-H5<=1,"Y","N"),0)
I have a table that looks like this and I want to use something like VLOOKUP to find the 2nd column value that's non-empty.
An example would be:
VLOOKUP("Kiwi", Range A:B, 2, 0) should return Green
VLOOKUP("Apple", Range A:B, 2, 0) should return Red
VLOOKUP("Pineapple", Range A:B, 2, 0) should return Yellow
Note that the first occurence of Pineapple is empty, but it still should return Yellow. and I don't have to use VLOOKUP and I am open to other methods too.
I would appreiate help.
Thank you.
You can use an INDEX/MATCH array formula:
The formula is:
{=INDEX(B1:B7;MATCH(1;(A1:A7=E1)*(B1:B7<>"");0))}
Be aware that this is an array formula, you need to enter it with CTRL + SHIFT + ENTER.
This formula will check if column A is "Pineapple" and column B is not a blank. You will get an (imaginary) array that looks like this:
The values in both arrays are multiplied and only for the last two rows, the result will be 1. MATCH looks up the 1 in this array (only the first occurrence!) and delivers the row number for "Yellow" to the INDEX function. INDEX then picks up the value in row 6 - which is "Yellow".
I hope that helps you.
MATCH will give you offset, so you can use OFFSET function.
IFNA is there to display empty instead of #N/A
=IFNA(OFFSET(B1;MATCH(1;(A1:A7=E1)*(B1:B7<>"");0)-1;0);"")
I'm trying to cross data to fill a sheet but I'm having some doubts.
I have a number a value in a sheet, and I want to complete it with data from another sheet.
For example:
I want to complete Column C in sheet 1, with the age that appears in sheet 2 (no problem if it copy's the whole cell), but it's not in a specific column. I tried to use vlookup & match, and it's returning an error. a Vlookup the EAN column, and use match the specific string "Age:".
Can you help me? Am I using the right formula
Step 1, find the row you want to work on: (Match on values in Column A)
=MATCH(Sheet1!$A2, Sheet2!$A:$A, 0)
Step 2, grab that entire row via OFFSET or INDEX:
=OFFSET(Sheet2!$1:$1, MATCH(Sheet1!$A2, Sheet2!$A:$A, 0) - 1, 0)
Step 3, find the Age cell in that Row using HLOOKUP and Wildcards ("*"):
=HLOOKUP("Age:*", OFFSET(Sheet2!$1:$1, MATCH(Sheet1!$A2, Sheet2!$A:$A, 0) - 1, 0), 1, FALSE)
(Optional) Step 4, convert to number:
=0 + TRIM(SUBSTITUTE(HLOOKUP("Age:*", OFFSET(Sheet2!$1:$1, MATCH(Sheet1!$A2, Sheet2!$A:$A, 0) - 1, 0), 1, FALSE), "Age:", ""))
Then just drag that down from C2 to however many rows you need. This will find the cell that starts with "Age:" in any column, A:XFD
Edit:
Found this source where it explains how to do It. In your case it would be:
{=INDEX(Sheet 2!E2:CT2,MATCH(FALSE,ISBLANK(Sheet 2!E2:CT2),0))}
This is if your data starts on Row 2 and as you said the age columns are between E:CT
Note how to insert the array formula as is explained on the post of the source.
Sorry if my title is confusing. I'm new to Logical formula in excel but I need it to achieve something now. I had check the internet for the formula but found it abit confusing and not sure what method i should use.
This is my situation:
I have an excel consists over 50+ rows. In each row, there are 5 different columns holding a value of either 1 or 0 with one extra column to determine the final value, which is something like below:
A1 = 0, B1 = 1, C1 = 0, D1 = 1, E1 = 1, F1 = (Final Value)
What I need is the logical statement to check if any cells from A1 to E1 consist of 0, then F1 will be equal to 0, else if all cells value is 1, then F1 is equal to 2.
As i said before, there over 50+ rows with the same thing, each line consists of 5 columns with a value of 1 or 0, and finally one extra column that hold the final value of 0 or 2 according to the 5 columns.
Kindly let me know any method i can use to achieve my needs or if there is any better solution to deal with all the rows which are basically the same thing.
Thank you for your time.
I like Gary's Student's for cleverness, but for clarity, I like:
=IF(COUNTIF(A1:E1,0)=0,2,0)
How about something like:
=MIN(A1:E1)*2