What I'm trying to do is look down a row of text values that could have the value "ICE" in them. I would like to assign "IC & num" to the rows that ICE is listed in the enitre row.
3 problems doing that
The number of columns could change at any point
There will be values other than ICE i.e. Brk or Lun in the row, they can not be overwritten.
I can not change the number of columns. I just want to replace the value ICE if it is the only value other than Brk or Lun in the row.
any ideas?
here is what I was trying:
If WorksheetFunction.CountIf _
(.Range(rng, .cells(rng.Row, "AL")).Resize(1, 16), "ICE") >= 15 Then
cell.Resize(1, 16).Value = "IC" & num
3 problems doing that
The number of columns could change at any point
There will be values other than ICE i.e. Brk or Lun in the row, they can not be overwritten.
I can not change the number of columns. I just want to replace the value ICE if it is the only value other than Brk or Lun in the row.
any ideas?
here is what I was trying:
If WorksheetFunction.CountIf _
(.Range(rng, .cells(rng.Row, "AL")).Resize(1, 16), "ICE") >= 15 Then
cell.Resize(1, 16).Value = "IC" & num
Code:
[RANGE=cls:xl2bb-100][XR][XH=cs:11]SUPPORTMasterNew.xls[/XH][/XR][XR][XH][/XH][XH]G[/XH][XH]H[/XH][XH]I[/XH][XH]J[/XH][XH]K[/XH][XH]L[/XH][XH]M[/XH][XH]N[/XH][XH]O[/XH][XH]P[/XH][/XR][XR][XH]59[/XH][XD=h:c|fz:8pt]ICE[/XD][XD=h:c|fz:8pt]ICE[/XD][XD=h:c|fz:8pt]ICE[/XD][XD=h:c|fz:8pt]Brk[/XD][XD=h:c|fz:8pt]ICE[/XD][XD=h:c|fz:8pt]ICE[/XD][XD=h:c|fz:8pt]QAPK[/XD][XD=h:c|fz:8pt]QAPK[/XD][XD=h:c|fz:8pt]QAPK[/XD][XD=h:c|fz:8pt]QAPK[/XD][/XR][XR][XH]60[/XH][XD=h:c|fz:8pt]ICE[/XD][XD=h:c|fz:8pt]ICE[/XD][XD=h:c|fz:8pt]ICE[/XD][XD=h:c|fz:8pt]ICE[/XD][XD=h:c|fz:8pt]ICE[/XD][XD=h:c|fz:8pt]ICE[/XD][XD=h:c|fz:8pt]ICE[/XD][XD=h:c|fz:8pt]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