![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi,
I`m building a macro which scans certain cell wheter they have info in it or not. These cells are replica`s of other cells in cell B12 I have "=A12" However if the base cell is empty (a12), the copied cell (b12) gives a value of 0. The macro consequently scans it and determines is is "notempty" I cannot seem to set the 0 to empty. (cell formats etc)Can anybody help me? |
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
|
Put in cell B12-
=IF(A12="","",A12) |
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
change your =a12 to =IF(A12>0,A12,"")
hope this helps |
|
|
|
#4 |
|
Guest
Posts: n/a
|
heh heh 2 secs too late
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
|
Hehe.
Beware using the IF(A12>0,...) one though,if you have negative values in a cell (admittedly, this won't be often) they won't then show up. |
|
|
|
|
|
#6 |
|
Guest
Posts: n/a
|
Great!
GREAT! GREAT! Thnks! |
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|