Zero in blank cells need to removed in macro

christypraveen

New Member
Joined
Apr 11, 2020
Messages
19
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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
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.
 
Upvote 0
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), """") ".
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,391
Members
448,957
Latest member
Hat4Life

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
Back
Top