VBA code for a IF Function
Last answer on Jul 20, 2009 2:07:39 pm BST PM, on Jul 20, 2009 1:04:26 pm BSTHello,
I need help on the following:
Selecting a range on data e.g A1:A14
Searching for a certain value e.g 3000
if query is true then copy a value on the same row and paste to another cell e.g: 3000 is located in cell A5, copy values in D5 and paste into F5. (All the copying and pasting must happen on the same row as the value)
If query is false then put the value 0 in F5
i need this query to work with several different values e.g 3021, 3041...
Can anyone help with this?
Thanks
PMI
Configuration: Windows XP Internet Explorer 6.0 Excel 2003
I cant get the If function to do what i want. Everytime i put a range into the code, it comes up with a error. If i work with a single cell then the below works.
|

