Nested IF and ISBLANK formula - excel

I need help with a nested IF and ISBLANK formula. Here is the scenario:
There are three columns: A, B and C. All three are dates.
I want to retrieve the value of column A in column D (direct value). if Column A is blank, retrieve Column B value, if Column B is also blank retrieve Column C value.
Addition to this if column A has year 2015/2016 consider that cell as Blank and retrieve Column B/C.
How do I tackle this scenario?

For your first bit:
=IF(ISBLANK(A1),IF(ISBLANK(B1),C1,B1),A1)
Then to add in the 2015/2016 check on A. This:
=IF(OR(ISBLANK(A3),AND(A3>=DATE(2015,1,1),A3<=DATE(2016,12,31))),IF(ISBLANK(B3),C3,B3),A3)

A different interpretation:
=1*TRIM(LEFT(IF(A1="2015/2016","",A1)&B1&C1,5))

Related

Sum column but include only cells that have matching criteria in multiple columns in same row

I have an Excel spreadsheet with four columns, call them A, B, C, and Value. What I want to do is sum the Value column but only include those cells that have a certain criteria matching in columns A, B and C.
An example, in English: SUM the values in the Value column that have a value of 6 in column A, a value of 10 in column B and a value less than 15 in column C.
Thanks
Make a table like the attached image in excel.
In B10 put:
=SUMIF(A2:A8,B14,B2:B8)
In the B14 put the criteria.
I was searching for the same thing but the multiple criteria were in a single column. In my case, I was using LibreOffice (which has the same syntax but uses ; instead of , as separators).
The solution is to sum multiple SUMIF
=SUMIF(A2:A8,"porshe",B2:B8)+SUMIF(A2:A8,"porshe",B2:B8)+SUMIF(A2:A8,"mazda",B2:B8)
If you want the OR operator on the sum.
If you want AND operator you need to use SUMIFS that has multiple criteria and ranges.
=SUMIF(B2:B8,"porshe",A2:A8,"electric",C2:C8)

How to compare columns A/B, and return value from column A that does not match B

I am running into an issue trying to compare values from column A and B. The end result is to have any value in column A that does not have a match in column B, to appear in column C.
The formula I am using is simple and just =IF(A2=B2, "Y", "N")
My issue is that I am unsure of how to compare the entire A column to the entire B column for matches and not row by row. I only want to see values returned in column C that are in Column A, but not in Column B.
There are about 150,000 rows of data here.
You can do that using a vlookup.
Formula for column C2 (apply it for entire column C) - =IF(ISNA(VLOOKUP(A1,B$1:B$13,1,FALSE)),A1,"")
You can modify the table range "B$2:B$13" depending on the actual table.
I think this will get you what you want:
=IF(COUNTIF(B:B,A1)=0,A1,"")
Edit:
Here is an example of the results I am getting.

Excel Formula - Return values from One Column based on Comparison between 2 Columns

Hi all,
Is there an excel formula to print the values in Column A for values in Column C please?
In order to obtain the Column A values use Column B.
For example
Name 5 in Column C, should print mjijij in Column D, based on Name 5 value Column B.
Regards,
Use the formula on Column D1,
=INDEX($A$1:$B$11,MATCH(C1,$B$1:$B$11,0),1)
Change the range as per your record.
Hope this helps you.

Matching Excel Columns

Would really appreciate some help. Pretty basic problem. In column A I have SSN's, Column B I also have SSN's and in column C I have dates associated with the SSN's in Column B. The problem the 2 different SSN's columns don't match and I need them too. Problem 2: The dates in column C need to stay associated with the same socials in column b.
This is fairly simple.
Either in a new sheet or in separate columns from your original data, create create a column that represents the same column as A or the original SSN's, this can easily be done with a simple reference formula =A1 and autofilled down. You can do the same for the second column that is a copy of the first SSN.
For the third column just use a simple INDEXand MATCHformula like this:
=INDEX(C:C,MATCH(E1,B:B,0))
This formula I have the new data in Columns E-G with this formula in column G.
What this formula is doing is looking for the value of E1 within column B (looking for the value of the first SSN within the span of the column B). It will then grab the date value from column C associated with the found value in B. This will not work if multiple of the same SSN's are found within column B.
Note: You have to set the formatting of the formula cell as a Date

If "x" is in column A and "y" is in column B, I want column C to be 5. I have a list of about 190 values. What is the most efficient way to do this?

I have a list of 190 column c values that correspond to specific column a and column b values. I created a huge if statement, but excel says it's too large and I keep messing up parentheses. What is a more efficient way to solve this problem? For example, if column A is "United" and column B is "Brain", I want column C to be 150. All for the first value. Thank you.
If your data is in column A and B. Use concatenate in column C:
Concatenate(A1, B1)
Then in your sheet with the values, insert a column between the values column and the two criteria columns. Use concatenate in that column as well (sane formula as above).
Then on the first sheet in column D use the formula:
vlookup(C1, Sheet2!C1:D190, 2, false)
This is assuming your second sheet is sheet 2 yadda yadda.
Let me know if you run into an issue!

Resources