=if(((isnumber(h41))c41=h41,if(((isblank(h41)),c41=d41,""))

kylefoley76

Well-known Member
Joined
Mar 1, 2010
Messages
1,550
this is a formula that will run down column c

=if(((isnumber(h41))c41=h41,if(((isblank(h41)),c41=d41,""))

if h41 isblank then the number in d41 fills c41, if the h41 has a number in it then that number should fill column c
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
Try

=IF(OR(ISNUMBER(H41),ISBLANK(H41)),D41,"")

This will return 0 if H41 is blank.
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
this is a formula that will run down column c

=if(((isnumber(h41))c41=h41,if(((isblank(h41)),c41=d41,""))

if h41 isblank then the number in d41 fills c41, if the h41 has a number in it then that number should fill column c

C41:

Either...

=IF(H41="",D41,H41)

Or...

=IF(ISNUMBER(H41),H41,D41)
 

kylefoley76

Well-known Member
Joined
Mar 1, 2010
Messages
1,550
aladin,

thanks your code is working.

vog,

sorry, that suggestion of yours didn't work out
 

Watch MrExcel Video

Forum statistics

Threads
1,133,562
Messages
5,659,556
Members
418,506
Latest member
drafting3

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