Forum Discussion
Replace function
- Mar 10, 2023
In A5, enter the formula =IF(ISODD(A1),"Odd","Even")
Fill to the right to L5, then fill down to row 7.
With A5:L7 still selected, copy the range (click Copy on the Home tab of the ribbon or press Ctrl+C).
Select A1, then click the lower half of the Paste button on the Home tab of the ribbon and select Values.
You can now clear A5:L7.
You could use formulas in a different range of the form
=IF(ISODD(cell, "Odd", "Even"))
Then copy the range with the formulas and paste it as values over the range in the red box.
HansVogelaar, Thanks Hans, I attach a sheet "Test.xlsx" could you please share on how to do this.
Many Thanks ,
Br,
Anupam
- HansVogelaarMar 10, 2023MVP
In A5, enter the formula =IF(ISODD(A1),"Odd","Even")
Fill to the right to L5, then fill down to row 7.
With A5:L7 still selected, copy the range (click Copy on the Home tab of the ribbon or press Ctrl+C).
Select A1, then click the lower half of the Paste button on the Home tab of the ribbon and select Values.
You can now clear A5:L7.
- anupambit1797Mar 10, 2023Iron ContributorThanks a lot Hans, may I also ask for one alternate solution as well, just in case if any possibility..
Thanks ,
Br,
Anupam- HansVogelaarMar 10, 2023MVP
Would a VBA macro be OK?