Multiple Criteria

mgrimm10

New Member
Joined
Apr 8, 2013
Messages
2
I have a formula i am attempting that should first look to see if there is a date or a zero in column R. If there is is a date in column R then the formula goes and picks up the the total in column AD. If there is a 0 in column R then i need the formula to test columns L, I and AD for the greatest value and return that value. If columns L, I and AD are all 0 then i need to pull in the value in column E. I tried the formula using multiple sumif formulas but there seems to be too many arguments for that to work.
 
Last edited:

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Akashwani

Well-known Member
Joined
Mar 14, 2009
Messages
2,911
Hi and welcome to MrExcel.

If I understand you and your IF logic correctly, does this work for you?....

Sample data and example results....

Excel Workbook
BCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAE
1ResultsData1Data2Data3Data4Data5
2100100060015008/04/2013100
3200020000000
4300300040035009/04/2013300
545040003004500400
6550500020055000
7600600010065010/04/2013600
8
Sheet13


The formula in C2 needs to be copied down, you can put this formula in any cell you want.

I hope that helps.

Ak
 

mgrimm10

New Member
Joined
Apr 8, 2013
Messages
2
Hi and welcome to MrExcel.

If I understand you and your IF logic correctly, does this work for you?....

Sample data and example results....

Sheet13

*BCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAE
1*Results*Data1***Data2**Data3*****Data4***********Data5*
2*100*1000***600**150*****08/04/2013***********100*
3*2000*2000***0**0*****0***********0*
4*300*3000***400**350*****09/04/2013***********300*
5*450*4000***300**450*****0***********400*
6*550*5000***200**550*****0***********0*
7*600*6000***100**650*****10/04/2013***********600*
8******************************

<COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 30px"><COL style="WIDTH: 64px"><COL style="WIDTH: 11px"><COL style="WIDTH: 64px"><COL style="WIDTH: 10px"><COL style="WIDTH: 10px"><COL style="WIDTH: 10px"><COL style="WIDTH: 64px"><COL style="WIDTH: 10px"><COL style="WIDTH: 10px"><COL style="WIDTH: 64px"><COL style="WIDTH: 10px"><COL style="WIDTH: 10px"><COL style="WIDTH: 10px"><COL style="WIDTH: 10px"><COL style="WIDTH: 10px"><COL style="WIDTH: 75px"><COL style="WIDTH: 10px"><COL style="WIDTH: 10px"><COL style="WIDTH: 10px"><COL style="WIDTH: 10px"><COL style="WIDTH: 10px"><COL style="WIDTH: 10px"><COL style="WIDTH: 10px"><COL style="WIDTH: 10px"><COL style="WIDTH: 10px"><COL style="WIDTH: 10px"><COL style="WIDTH: 10px"><COL style="WIDTH: 64px"><COL style="WIDTH: 29px"></COLGROUP><TBODY>
</TBODY>

Spreadsheet Formulas
CellFormula
C2=IF(AND(R2<>0,ISNUMBER(R2)),AD2,IF(AND(R2=0,MAX(I2,L2,AD2)=0),E2,MAX(I2,L2,AD2)))

<TBODY>
</TBODY>

<TBODY>
</TBODY>


Excel tables to the web >> Excel Jeanie HTML 4

The formula in C2 needs to be copied down, you can put this formula in any cell you want.

I hope that helps.

Ak

Yes, this worked ! Thank you very much!
 

Akashwani

Well-known Member
Joined
Mar 14, 2009
Messages
2,911
Hi,

I'm pleased it worked for you and thanks for the feedback. :biggrin:

Ak
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,029
Messages
5,835,036
Members
430,333
Latest member
jaypatel1298

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