small function, but don't count blanks

jimblimm

Board Regular
Joined
May 11, 2012
Messages
219
My data

A1:a8

00

02
04

56

99

I am trying to make a small( function work that will not count blank cells

my values in b1:f1 should be

b1=00, c1=02, d1=04, e1=56, f1=99
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Working here. My values are numbers formatted as Custom, "00". If you have text values it will fail

Excel Workbook
ABCDEF
1010102045699
2
302
404
5
656
7
899
CA Invoices
 
Upvote 0
'00 is text not a number so you won't be able to perform math with it.

Just enter 0, select the cell, press CTRL + 1, click Custom, in the box type 00 and click OK.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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