multi IF arguments to answer before calculating

cgreen

Active Member
Joined
Aug 14, 2002
Messages
293
This one has me ... any ideas or help?!?!?

formula in C4
If B4>0, C2>0, H4>0, and sum in C4>I4 = C2-B4
 
ok so this is going in D4 -- this makes more sense, your earlier posts didn't specify yet implied C4 which was causing much consternation on my part as it would be circulalr (and thus not really work very well without much iteration)

So if C4 is blank then give me the value in AA4, if C4 has a value and D2 is greater then B4 then subtract C4 from B4. If D2 is less then B4 then leave cell blank.

D4 = IF(ISBLANK($C4),$AA4,IF($D$2>=$B4,$B4-$C4,""))

I am presuming from earlier posts that D2 is a constant and so I've made absolute reference (ie won't change if you copy this formula across a matrix)

I have also assumed if D2 => B4 then D4 = B4 - C4 (ie great then OR EQUAL to)
 
Upvote 0

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
almost there ... This formula is giving me the answer I'm looking for, but I'm still looking for a little more.

D4 =IF(ISBLANK($C$4),$AA$4,IF($D$2>=$C$4,$C$4-$B$4,IF($D$2<$C$4,$D$2-$B$4,"")))

E4 =IF(ISBLANK($C$4),$AB$4,IF($E$2>=$C$4,$C$4-$B$4,IF($E$2<$C$4,$E$2-$B$4,"")))

F4 =IF(ISBLANK($C$4),$AC$4,IF($F$2>=$C$4,$C$4-$B$4,IF($F$2<$C$4,$F$2-$B$4,"")))

G4 =IF(ISBLANK($C$4),$AD$4,IF($G$2>=$C$4,$C$4-$B$4,IF($G$2<$C$4,$G$2-$B$4,"")))

D2= 7/4/08, E2= 7/11/08, F2= 7/18/08, G2= 7/25/08, If B4= 7/2/08 and C4= 7/8/08, then I want D4= 2, E4= 6, F4= --, G4= --

Can this be done?
 
Upvote 0
I think you tweaked my last formula a bit... ;)

copy this into D4 -- then you can simply copy this formula across your entire matrix, there is no need to adjust it per column/row etc as I have set the relative references to meet your needs.

=IF(ISBLANK($C4),$AA4,IF(AND(COLUMN(D4)>4,C$2>=$C4),"",IF(D$2>=$C4,$C4-$B4,D$2-$B4)))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,545
Members
449,089
Latest member
davidcom

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