fixing formula if

abdelfattah

Well-known Member
Joined
May 3, 2019
Messages
985
Office Version
  1. 2010
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
 

Some videos you may like

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
Joined
Apr 22, 2020
Messages
107
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
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
 

abdelfattah

Well-known Member
Joined
May 3, 2019
Messages
985
Office Version
  1. 2010
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
Joined
Apr 22, 2020
Messages
107
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Ok, paste this formula in cell F3 and drag down

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

Watch MrExcel Video

Forum statistics

Threads
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.
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
Top