2

Need your support in finding a solution for an issue which I am facing now.

enter image description here

Formula for Column A... Data Range from B to D

  • Have values in a range of spreadsheet cells (From column B to D)
  • Value may or may not be present within the range

  • I need the formula to update the leftmost value from the same row to the Column A.. E.g In Row 2, "Abil" is the leftmost cell from the range B2 to D2.

Something like =Left(B2:D2) which will select the leftmost cell value to the A2 cell

2 Answers 2

0

=ARRAYFORMULA(IF(IF(B2:B<>"", B2:B, C2:C)<>"", 
                 IF(B2:B<>"", B2:B, C2:C), D2:D))

0

1
  • 1
    Thanks @user0.. It worked perfectly resolving all my issues! Jul 27, 2019 at 12:31
0

=ARRAYFORMULA(IFERROR(REGEXEXTRACT(TRIM(TRANSPOSE(QUERY(
 TRANSPOSE(B2:D), , 999^99))), "\w+")))

0


=ARRAYFORMULA(INDEX(IFERROR(SPLIT(TRIM(TRANSPOSE(QUERY(
 TRANSPOSE(B2:D), , 999^99))), " ")), , 1))

0

4
  • Thank you "User0" ... It worked... Jul 27, 2019 at 11:57
  • Only issue which I faced is, in few cells now I am having URLs as the cell value... E.g hxxps://webapps.stackexchange.com @user0 The formula you provided only shows "hxxts" with in the cell triming off the remaining section.. SO how can we get the full value within the cell without checking the value within the cell & trimming text within ? Jul 27, 2019 at 12:07
  • @JacksonGilbert answer updated
    – user0
    Jul 27, 2019 at 12:37
  • The last updated array formula is very much easy and perfect... Appreciate your support... Jul 27, 2019 at 12:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.