Error in formula

Saransh

New Member
Joined
Mar 22, 2011
Messages
7
Hello Everyone

A B
1 10500 5000
2 12600 7000
3 10500 2000
4 23000 1000
5 27000 2500

i want that the value in A column if it is between 10000 and 20000 their amount in column B should show the sum in any other column

i have tried using:

=SUM(IF(AND(A2:A6,">10000",A2:A6,"<20000"),Sheet1!B2:B6))
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Welcome to the board..

Can't use AND in an array like that..
Try

=SUM(IF((A2:A6, > 10000)*(A2:A6, < 20000),Sheet1!B2:B6))

Entered with CTRL + SHIFT + ENTER
 
Upvote 0
Hello Everyone

A B
1 10500 5000
2 12600 7000
3 10500 2000
4 23000 1000
5 27000 2500

i want that the value in A column if it is between 10000 and 20000 their amount in column B should show the sum in any other column

i have tried using:

=SUM(IF(AND(A2:A6,">10000",A2:A6,"<20000"),Sheet1!B2:B6))
Try one of these...

Use cells to hold the criteria:
  • D2 = 10000
  • E2 = 20000
This formula will work in any version of Excel.

=SUMIF(A2:A6,">"&D2,B2:B6)-SUMIF(A2:A6,">="&E2,B2:B6)

This formula will work in Excel versions 2007 and later.

=SUMIFS(B2:B6,A2:A6,">"&D2,A2:A6,"<"&E2)
 
Upvote 0
hi guys,

can anyone explain that how can i unprotect a password protected cell.

i have forgotten password.

thanks
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,756
Members
452,940
Latest member
rootytrip

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