Beyond my knowledge or impossible please help

NialithGodSlayer

New Member
Joined
Dec 21, 2020
Messages
8
Platform
  1. Windows
I will explain the cells first
A1 = a set value (5700)
B1 = deducted value
C1 = cost
D1 = a different deducted value

So i want B1 to be A1-C1 but if the value of C1 is 0 then could i instead get b1 to equal the value of D1 if the value of D1 is less than the value of A1
 
How about
Excel Formula:
=IF(C1<>0,A1-C1,IF(D1=0,A1,D1))
 
Upvote 0

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
How about
=IF(C1<>0,A1-C1,IF(D1=0,A1,D1))

Did you test that with the 3rd example in the image, where B1=0 when A1=5700, C1=0, D1=0?(!)

Did you notice that NGS's latest conditions have nothing to do with C1?(!) They are all of the form "if the value of b1...".

And if you believe that is just a typo and "if...b1" was meant to be "if...c1", how do reconcile the first two "if..." statements?

Food for thought. Gave me indigestion. :)
 
Upvote 0
No, I just went by the previous post from the OP.
so i figured its something like this after a lot of testing, i just need to be able to write it to work together

=IF(C40>0,E40,I40+J40=IF(I40=0,K40+J40=IF(J40=0,L40+I40=IF(I40+J40=0,M40,E40))))
 
Upvote 0
so i figured its something like this after a lot of testing, i just need to be able to write it to work together

=IF(C40>0,E40,I40+J40=IF(I40=0,K40+J40=IF(J40=0,L40+I40=IF(I40+J40=0,M40,E40))))
so its
=if(c40>0,e40,i40+j40)
but if i40=0
then replace with the last bit with
k40+j40
or if j40=0
then replace with the las bit with
l40+i40
or if i40+j40=0
then replace the last bit with
m40

im not even sure its possible
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,427
Members
448,961
Latest member
nzskater

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