ARRAYFORMULA and IF

Jewells0905

New Member
Joined
Mar 10, 2024
Messages
34
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I am trying to the copy the movie genre from column D if it's not empty, otherwise insert the text string "N/A" into Column E using ARRAYFORMUlA and IF. Here is the formula I'm using, which is working, however, it's producing TRUE or N/A instead of the movie title or N/A. I know this is a simple fix, but for the life of me can not get it to work.

=ARRAYFORMULA(IF(ISBLANK(D2),"N/A",ISTEXT(D2)))
YearLengthTitleGenreGenre2Actor
1990111Tie Me Up! Tie Me Down!ComedyTRUEBanderas
1991113High HeelsComedyTRUEBosé
1983104Dead ZoneN/A
1979122CubaActionTRUEConnery
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
is this in googlesheets OR excel
I dont have arrayformula in excel 365
=IF(ISBLANK(D2),"N/A",ISTEXT(D2)))
istext will give TRUE /FALSE

try
IF(ISBLANK(D2),"N/A",D2)

Book2
ABCDEF
1YearLengthTitleGenreGenre2Actor
21990111Tie Me Up! Tie Me Down!ComedyComedyBanderas
31991113High HeelsComedyComedyBosé
41983104Dead ZoneN/A
51979122CubaActionActionConnery
Sheet1
Cell Formulas
RangeFormula
E2:E5E2=IF(ISBLANK(D2),"N/A",D2)
 
Upvote 0
I got this one figured out using the below formula
=ARRAYFORMULA(IF(D2:D<>"",D2:D,"N/A"))
 
Upvote 0
Solution
is this in googlesheets OR excel
I dont have arrayformula in excel 365
=IF(ISBLANK(D2),"N/A",ISTEXT(D2)))
istext will give TRUE /FALSE

try
IF(ISBLANK(D2),"N/A",D2)

Book2
ABCDEF
1YearLengthTitleGenreGenre2Actor
21990111Tie Me Up! Tie Me Down!ComedyComedyBanderas
31991113High HeelsComedyComedyBosé
41983104Dead ZoneN/A
51979122CubaActionActionConnery
Sheet1
Cell Formulas
RangeFormula
E2:E5E2=IF(ISBLANK(D2),"N/A",D2)
thank you! I didn't see this until after I had posted. Both formulas work.
 
Upvote 0

Forum statistics

Threads
1,215,214
Messages
6,123,664
Members
449,114
Latest member
aides

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top