if function help

lrkfam

New Member
Joined
Aug 18, 2011
Messages
4
i need the if function to work as follows:

if(d2<d3<d4,ae1+af1,ag1)<d3<d4,ae1+ad1,af1)
<d3<d4,ae1+af1,ag1)


if d2 is less than d3 and d3 is less than d4, if true then add ae1 to af1, if false then show the value from cell af1

it doesn't seem to work. what can i do to get the results i want?</d3<d4,ae1+af1,ag1)
</d3<d4,ae1+ad1,af1)
 
Last edited:

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
i need the if function to work as follows:


if(d2<D3<D4,AE1+AF1,AG1)<D3<D4,AE1+AD1,AF1)< p>
<D3<D4,AE1+AF1,AG1)< p>

if d2 is less than d3 and d3 is less than d4, if true then add ae1 to af1, if false then show the value from cell af1


it doesn't seem to work. what can i do to get the results i want?</D3<D4,AE1+AF1,AG1)< p>

Not sure whether your specifications are complete. Does the following...

=IF(AND(COUNT(D2:D4)=3, D2 < D3, D3 < D4), SUM(AE1:AF1), AF1)

works for you?
</D3<D4,AE1+AD1,AF1)[ p QUOTE]<>
 
Upvote 0
i need the if function to work as follows:


if(d2<D3<D4,AE1+AF1,AG1)<D3<D4,AE1+AD1,AF1)< p>
<D3<D4,AE1+AF1,AG1)< p>

if d2 is less than d3 and d3 is less than d4, if true then add ae1 to af1, if false then show the value from cell af1


it doesn't seem to work. what can i do to get the results i want?</D3<D4,AE1+AF1,AG1)< p>
</D3<D4,AE1+AD1,AF1)[ p QUOTE]<>Maybe this...

=IF(AND(D2 < D3, D3 < D4),AE1+AF1,AF1)<D3,D3<D4),AE1+AF1,AF1)< p>
 
Upvote 0
=IF(AND(D2 < D3, D3 < D4),AJ2+AE2,AK2)

i tried this one, but i get the same result as before using:

=if(d2<d3<d4,aj2+ae2,ak2)

i'm trying the other one now
 
Upvote 0
ok. i think i got it to work now. not sure what the problem was before.

=IF(AND(D3 < D4, D4 < D5),AJ2-AE2,AK2)

seems to work perfectly for now. thanx!!!:biggrin:
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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