Copy & Paste specific cell in VBA if cell contains any number will not copy and paste if blank.

wolverine21

New Member
Joined
Jul 18, 2019
Messages
2
ValueCopy and paste cellsnotes
15
Since this has a number it will copy and paste[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]=IF($H7<J$5,$I7,0) example of formula I'm copying and pasting[/FONT]
Cell is blanksince this is blank it will do nothing
210
Since this has a number it will copy and paste
<strike></strike>
I have approx. 200 rows in the spreadsheet. [HR][/HR]

<tbody>
</tbody>

I'm trying to attach a copy of the file and or picture but I don't have a URL.
Any help would be really appreciated. I could send an example file if that would help.
 

Some videos you may like

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

wolverine21

New Member
Joined
Jul 18, 2019
Messages
2
The formula didn't copy over in the notes column.

=IF($H7< j$5,$i7,0)
 
Last edited by a moderator:

DanteAmor

Well-known Member
Joined
Dec 3, 2018
Messages
12,152
Office Version
2007
Platform
Windows
If we use the < o > signs, you must put a space before and after each sign, otherwise the forum editor considers it a code and then deletes the row.

You could upload a copy of your file to a free site such www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. If the workbook contains confidential information, you could replace it with generic data.

​To give examples, check the following:
https://www.mrexcel.com/forum/board-announcements/127080-guidelines-forum-use.html
 

Watch MrExcel Video

Forum statistics

Threads
1,102,260
Messages
5,485,723
Members
407,511
Latest member
Tryintouseexcel

This Week's Hot Topics

  • Finding issue in If elseif else with For each Loop
    Finding issue in If elseif else with For each Loop I have tried this below code but i'm getting in Y column filled with W005. Colud you please...
  • MsgBox Error
    Hi Guys, I have the below error show up when i try and run my macro in File1 but works fine if i copy and paste the same code into file2. [ATTACH...
  • CELL FORMAT - IF CONDITION
    My Cell Format is [B]""0.00" Cr". [/B]But in the cell, it is showing 123.00 for editing. (123 is entry figure). (Data imported from other...
  • Show numbers nearly the same
    Is this possible. I have a number that can change very time eg 0.00001234 Then I have a lot of numbers 0.0000001, 0.0000002, 0.00000004...
  • Please i need your help to create formula
    I need a formula in cell B8 to do this >>if b1=1 then multiply ( cell b8) by 10% ,if b1=2 multiply by 20%,if=3 multiply by 30%. Thank you in...
  • Got error while adding column and filter
    Got error while adding column and filter In column Z has some like "Success" and "Error". I want to add column in AA if the Z cell value is...
Top