Formula for a cell

Packfan86

New Member
Joined
Jun 24, 2008
Messages
26
Hi,

I need a formula that can read one cell and determine if it should do anything with that cell.

For example

I have cell M2 that is either blank or has data in it. So if M2 is blank, I want it to do nothing with the rest of the cells in that column. However, if it has data in that cell, I want it to go through the row, and where there isn't data (just blank cells) I want it to put a 0. Is there an easy way to do this? I appreciate any help. My sheet is about 28,000 rows long as well.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
I am not completely sure of your need, but you might want to consider using the 'IF' function in your spreadsheet. For instance, you could put in, say, cell P1:

= IF($M$2="","",sum(P1:P100))

What this does is if cell M2 is blank ("") then make cell P1 blank (""), else if M2 is not blank, sum cells P1 thru P100 and place that result in cell P1.

Take care,

Owen
 
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,873
Members
449,056
Latest member
ruhulaminappu

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