Quick Easy question

jmahlow7

New Member
Joined
Jan 23, 2016
Messages
16
If I have a function such as F4 =F2-(D2*100), since its subtracting and If I have no data in there it will always be -100 until I put data. How can I make it show nothing until data is entered?

Also
Is there also an easier way to use this formula for the full column instead of dragging it down 1000 rows?
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
it is a formula, rather than a function

IF(F2="","",=F2-(D2*100)) will test for an empty F2

IF(D2="",""(IF(F2="","",=F2-(D2*100))) should then test for an empty D2 as well
untested

 
Upvote 0
Try:
=IF(F2-(D2*100), -100, "", F2-(D2*100))

If you type this into (eg) Cell A1, then right-click Cell A1 and select Copy from the drop-down menu;
Then right-click the Letter A in Col A to highlight the whole column;
Then select Paste from the drop-down menu

That will copy the formula to every cell in Column A.
 
Last edited:
Upvote 0
A simply way

=F2-(D2*100)*(F2=D2) will put 0 instead of blanks.

Second poin: select a large range in a column and enter the formula with Ctrl+enter. All cells in range will be filled with the formula.

Bye
 
Upvote 0
I made a typo in my post: the right formula is =IF(OR(D2=0,F2=0),-100,F2-(D2*100)) .Entering with ctrl+enter after selecting a range will fill it all with the formula.

Sorry for my mistake.
 
Upvote 0
I made a typo in my post: the right formula is =IF(OR(D2=0,F2=0),-100,F2-(D2*100)) .Entering with ctrl+enter after selecting a range will fill it all with the formula.

Sorry for my mistake.


No Problem, also can you tell me how to automatically number column A starting from A2 only when data is entered? Row 1 has header info
 
Upvote 0
a dirty solution:
A2=1
A3=IF(B3<>"",A2+1,"") then drag it down
An empty cell to the right stops numbering so you have to avoid empty rows inbetween formula/data area
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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