fixing formula if

abdelfattah

Well-known Member
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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Dave87

Board Regular
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

sandy666

Banned - Rules violations
1st thing semi colons don't work in formulas, use commas

semicolon and comma works in formula, depends on region/country/excel language

abdelfattah

Well-known Member
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:

Dave87

Board Regular
Ok, paste this formula in cell F3 and drag down

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

abdelfattah

Well-known Member
well done, Dave that's what i'm looking for

Replies
8
Views
119
Replies
1
Views
33
Replies
7
Views
72
Replies
4
Views
129
Replies
13
Views
160

1,127,595
Messages
5,625,710
Members
416,128
Latest member
WarJamAnd

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.

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

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