fixing formula if

abdelfattah

Well-known Member
Joined
May 3, 2019
Messages
1,429
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
hello
i have this formula but it gives me error =IF(D2:D99="";F1:F99="";(F2+D3)-E3) i have value in column d, e i would showing empty cell in column f if col d,e ="" and if is not it applys this formula =(F2+D3)-E3) so this formula changes in column d,e contain values so it should this = =(F3+D4)-E4) ,=(F4+D5)-E5) and so on
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
1st thing semi colons don't work in formulas, use commas

what exactly are you trying to accomplish here, your formula doesnt make any sense. IF D2:D99 is blank what do you want to happen?

Are you trying to say IF cells D2:d99 are blank AND F1:F99 is blank you wish to calculate F2+d3-E3
 
Upvote 0
hi, dave about semi colon my version office 2010 doesn't work comma with any formula
input
المصنف1 (version 1).xlsb
DEF
1debitcreditbalance
2200002000
35001500
41001600
51600
61600
71600
81600
91600
101600
111600
121600
sheet2
Cell Formulas
RangeFormula
F2F2=D2-E2
F3:F12F3=(F2+D3)-E3



output
المصنف1 (version 1).xlsb
DEF
1debitcreditbalance
2200002000
35001500
41001600
5
6
7
8
9
10
11
12
13
sheet2
Cell Formulas
RangeFormula
F2F2=D2-E2
F3:F4F3=(F2+D3)-E3


as you see col e,d no values shouldn't repeat the last value in col f
 
Last edited:
Upvote 0
Ok, paste this formula in cell F3 and drag down

=IF(AND(ISBLANK(D3);ISBLANK(E3));"";(F2+D3)-E3)
 
Upvote 0

Forum statistics

Threads
1,214,606
Messages
6,120,490
Members
448,967
Latest member
visheshkotha

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