column formulas

kimberann13

New Member
Joined
Sep 13, 2005
Messages
19
Ok,someone told me that you can enter in a formula for an ENTIRE column and it will auto-compute for every cell in the column?? TRUE??? :oops:

I have 2 columns of dates (start date, end date) and I want to figure the #of days between (easy!!! =b-a) BUT I have some in the end date that are empty and I do not want a big neg. number to show in the # of day between cell.........

any suggestions???? :confused:
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
AWESOME!!

thanks!!! that works great.....

But have you heard of a formula you only enter ONCE and it will apply to the entire column???
 
Upvote 0
Oh. You have to select all of the cells you want it to go into, first.

So, select C1:C10. With all of the cells still selected, start typing the formula. Then press Ctrl+Enter and the formula (or anything else you entered) will be put into all of the highlighted cells.

Edit: Or, I guess just enter it into C1 and fill down. Either way, you have to tell it where to go somehow:)
 
Upvote 0
Re: AWESOME!!

kimberann13 said:
But have you heard of a formula you only enter ONCE and it will apply to the entire column???

try this

=SUMPRODUCT(--(A2:A10<>""),--(B2:B10<>""),--(B2:B10-A2:A10))

adjust ranges as necessary
 
Upvote 0

Forum statistics

Threads
1,207,111
Messages
6,076,607
Members
446,216
Latest member
BEEALTAIR

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