# Multiple Criteria

#### mgrimm10

##### New Member
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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
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
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

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

 * B C D E F G H I J K L M N O P Q R S T U V W X Y Z AA AB AC AD AE 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>

<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!

Hi,

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

Ak

Replies
17
Views
513
Replies
3
Views
85
Replies
2
Views
132
Replies
6
Views
211
Replies
7
Views
136

1,216,127
Messages
6,129,026
Members
449,482
Latest member
al mugheen

### 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.

### Which adblocker are you using?

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

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