Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
zknauss
Posted - 09/26/2022 : 5:53:35 PM Hello, I'm trying to get the following function to work so that in column 12 of my data set a value of "A" is replaced with "Active" and "B" with "inactive". I seem to have something wrong but am not getting any error messages to give guidence on what. Thanks!
ZTK
for (int i = 0; i <= wks.nrows; i++ ) { range bb = [FreqSortNCON]"FRQSorting_N_CON"!$(12)[i]; if(bb=="A",Replace(bb,"Active");,if(bb=="B",Replace(bb,"Inactive");,"") }
ZTK
2 L A T E S T R E P L I E S (Newest First)
zknauss
Posted - 09/27/2022 : 09:22:05 AM That was perfect, Thank you!
ZTK
AmandaLu
Posted - 09/27/2022 : 04:18:17 AM Hi,
Please try:
range bb = [FreqSortNCON]"FRQSorting_N_CON"!col(12); for (ii = 1; ii <= wks.nrows; ii++ ) { if(bb[ii]$ =="A") bb[ii]$ = "Active"; if(bb[ii]$ =="B") bb[ii]$ = "Inactive"; }