Adding data in a row based on criteria from another

Pugs107

New Member
Joined
Nov 18, 2005
Messages
19
I am trying to add data in one range based on criteria from another. For example, I would like to add all data in Row 2 where Row 1 is less than or equal to 3

A B C D E
Row 1- 0 1 2 3 4
Row 2- 1 1 1 1 1

So, A2+B2+C2+D2 but not E2

I cannot seem to figure out how to do this. Can anybody help me out, please.
-Mike[/i]
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Pekkavee

Well-known Member
Joined
May 25, 2004
Messages
1,218
Maybe I didn't fully understand what you want but try something like this

=IF(A1>3,"Bigger than 3",SUM(A1:A2))

Pekka
:eek: :eek:
 

Pugs107

New Member
Joined
Nov 18, 2005
Messages
19
Sorry, that example looked terrible.
Book1
ABCDE
112345
212122
Sheet1


I need to create a formula that will lookup the values in Row2 that correspond to values in Row1 that are less than 3 and find the sum of them.
 
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,163,628
Messages
5,832,762
Members
430,165
Latest member
Idjaz

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