ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Replace #N/A via sctipt (https://www.excelbanter.com/excel-worksheet-functions/451049-replace-n-via-sctipt.html)

[email protected]

Replace #N/A via sctipt
 
Hi

I am importing xml into my sheet and one of the imports is #N/A as the node being imported is a expiry date if said node does not expire the field is empty hens returning a #N/A.

Now what i am doing is changing another column based on this
but if the column reads #N/A it also returns #N/A in the other column.

What i want to do by using a script check the value in J column and if that value is #N/A replace it with "Never!"

i already have this in the H column

=if(J3:J<"Never!","Expires!",if(I2:I={1073741823} ,"Full key!",if(I2:I<"1073741823","Not a full key!")))

so i cant use a isna in the H column to change this to "Never!"

I hope i have explained well enough for someone to understand what i mean.




All times are GMT +1. The time now is 09:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com