Zero in blank cells need to removed in macro

christypraveen

New Member
Joined
Apr 11, 2020
Messages
10
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi.

I am having one doubt in excel. Getting data from other sheet which is in share point and used index and match formula to get data..macro is working fine but data sheet having some blank cells and returning to zero..how remove those zeros.. Please advice
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
38,034
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
Are you getting the values from the other sheet using a formula like this...

=A1

If so, change the formula to this...

=IF(A1="","",A1)

This way you will test if A1 is blank and, if so, have the formula output the empty text string ("") otherwise the formula will output whatever non-blank value is in cell A1.

If, on the other hand, your code is outputting those zeros, then you will have to show us your code so we can see what you are doing in it.
 

christypraveen

New Member
Joined
Apr 11, 2020
Messages
10
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi sir. Thanks for reply. Below is the formula I have used. Please advice what changes I can do in formula.

=IFERROR( '" & pathN & "Sheet name'! $1:1048576, match($J7, '" & PathN & "sheet name'! $W:$W, 0), DG$5), """") ".
 

Forum statistics

Threads
1,176,168
Messages
5,901,732
Members
434,914
Latest member
mabek

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top