VBA - criteria lookup and the removing formula from cell

Closed
Debs269 Posts 21 Registration date Monday 15 October 2012 Status Member Last seen 18 August 2016 - 22 Apr 2014 à 12:07
Debs269 Posts 21 Registration date Monday 15 October 2012 Status Member Last seen 18 August 2016 - 24 Apr 2014 à 07:31
Hi,

Could someone help... I have written some code but cant get it to do exactly what I want, and think I have over complicated the problem.

Cell J6 - has a trigger either 1 or 0
Cell H6 has formula =If(J6=1,I6,"") - 'this takes a date from I6'

I need to remove the formula from cell H6 and replace with the value.

Then go on to the next row, I also want it to ignore blank cells and leave the formula there.

Can anyone help.

Many Thanks


Worksheet ("Milestones")
Related:

3 responses

venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 811
23 Apr 2014 à 01:38
select H6. copy(control+c).
without removing selection cllick "pastevealues"

quote
Then go on to the next row, I also want it to ignore blank cells and leave the formula there.

quote

this is not clear

do you mena to say that when j of a row i1 then corresponding cell in H column should be values not formulas. if 0 keep the formula. clairfy
Debs269 Posts 21 Registration date Monday 15 October 2012 Status Member Last seen 18 August 2016 2
23 Apr 2014 à 04:48
Hi, Thanks for your message,

In Column I has an "if" statement, that is looking for a date in column J (which is looking up data from another sheet)

Column H ... "if" statement that is looking if that date is less than or equal to todays date.

All I am trying to do is remove the formula in column H and leave the value so that when the date changes in column I it does not change in column H

If no date in column H then I want the formula to stay
I need to loop through all the rows in the sheet.


Sorry I hope I have explained it better

Debs
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 811
24 Apr 2014 à 00:17
better way of explaining to send a small extract of your data through speedyshare.com and explain again
Debs269 Posts 21 Registration date Monday 15 October 2012 Status Member Last seen 18 August 2016 2
24 Apr 2014 à 07:31
Thanks, I have managed to write something that doing what I want .. probably a better way but it is working

Thanks for your help... next will attach extract