Filling data with with information from 1 of 3 cells - excel

I hope I can explain sufficiently for someone to understand and be able to help, I have 27000 records to update into one column.
I'm hoping to use a formula to fill column D with data from column A but if that cell is blank use data from column B and again if that column is blank use data column c.
]: https://i.stack.imgur.com/DTwI7.png

Try this:
=IF(A1<>"",A1, IF(B1<>"",B1,IF(C1="","",C1)))

This doesn't use IF, and so is more flexible for use with longer ranges.
=INDEX(FILTER(A1:C1,A1:C1>"",""),1)
It FILTERs the row for non-empty text cells, and returns the first one via INDEX.

May be like this in your cell D2
=IF(A2<>"", A2, IF(A2="", B2, Value(C2)))

Related

Finding partial matches within an if statement

Does anyone know how I can write an if statement that searches for partials in VBA? For example, if A2 and A3 both contain Jon, I would like the totals under the 2020 column to be summed, and then it would move down and check the values in A4 and A5. It should work the same way for Mary. But with ben, it should only total A6 because the cell underneath contains Chip. Then it should go down again and check the following two cells for a match. This is for a report that changes weekly, so the names will not always be the same. Any help is appreciated. Thank you.
As Rno said, name uniques would become an issue, but for this small data set you can add another column of name values in column F and do a sumif formula on those separated names.
See Formulas Used Pic
In cell f2 =TRIM(RIGHT(A2,LEN(A2)-FIND("-",A2,1)))
In cell H2 =SUMIF($F:$F,$G2,B:B)

Formula to remove row with empty column and select specific columns in Excel spreadsheet

I have the following scenario.
Driving Toyota Hilux Best
Driving Mitsubishi Triton
Driving Ford Ranger Good
Driving Hilux Best
Driving Ranger Good
I would like to use a formula to automatically rearrange the upper table to the lower table.
I was actually trying to eliminate all rows with empty cell in fourth column and then remove the second column.
What formula should I use ?
Thank you.
In A6, copied across and down :
=IFERROR(INDEX($A:$D,MMULT(SMALL(($D$1:$D$3="")/1%%+ROW($1:$3),ROWS($1:1)),1),INDEX({1,3,4},COLUMN(A1)))&"","")
As per below screenshot use following formula to A6 cell.
=IFERROR(INDEX($A$1:$D$3,AGGREGATE(15,6,ROW($1:$3)/($D$1:$D$3<>""),ROW(1:1)),1),"")
You need to change Column reference of INDEX() formula for 2nd and 3rd column as you want to skip B Column. So, for cell B6 formula will be...
=IFERROR(INDEX($A$1:$D$3,AGGREGATE(15,6,ROW($1:$3)/($D$1:$D$3<>""),ROW(1:1)),3),"")
If you notice Column argument is 3 here because we skip column 2 of your source data.

Formula from text value cell

In an Excel spreadsheet I count the blank rows between two rows with values. I use the MATCH formula. Now I need to get the largest number into the st column.
I have a solution to get the row numbers (of the rows with cells) and create array as text (e.g. =MAX(W"&N2&":W"&O2&").
I cannot get the value from cell AK to be a real formula. I do not want to go for VBA, this would make things too complicated.
Any ideas how to do this?
Use INDEX():
=MAX(INDEX(W:W,N2):INDEX(W:W,O2))
Entirely different interpretation (based on screenshot), in Row2 and copied down to suit:
=IF(J2<>"",MAX(OFFSET(K2,,,L2)),"")

Is there a formula that will paste the result of a separate formula as a value?

Ex.
column A is a formula that outputs an 8 digit ID from a prior delimited calculation. I want to vlookup that ID to a separate set of data, but it is not finding the ID when the lookup value is part of a formula.
Is there a way to paste the formula result as a value in column b?
I have a list of 3000+ IDs, so using the F2, F9 trick won't work, since I would have to do that cell by cell.
Would prefer not to use VBA, but if that is the only way, can someone help simplify that process (new to using VBA)
If you have data in column A based on a left function of a bunch of numbers, and just want that result in column B, all you have to do is put:
=Value(ColRow)
in Column B. Then you can look up the value in Column B via VLookUp.
I am an avid Excel user and personally tested this solution. Though it appears #Scott beat me to it in the comment section.

I have some addresses in column A which is not in proper format, I want to copy the state in separate cells

I have some 30000 addresses in Column A, which is not in proper format.
I have made a column of all States in Column C, whose range is from C2:C36.
I want something like that, those words in Column A that match with Column C whose range is C2:C36; should copy in Column B.
You can see the screenshot to understand better.
Please provide me solution, either any formula or VBA macro.
For a formula version, you could try:-
=IFERROR(INDEX($C$2:$C$36,MATCH(TRUE,(ISNUMBER(FIND($C$2:$C$36,A2))),0)),"")
Is an array formula and must be entered in B2 using CtrlShiftEnter
This is case sensitive: for a non-case-sensitive version, use SEARCH instead of FIND.

Resources