sumif formula

mikeywhits

Board Regular
Joined
Jun 7, 2010
Messages
80
Hi Guys,

I am trying to do the following..

If want to add the value of cells in a1:a9, if cells b1:b9 have either of the letters "R", "A", "G", AND if cells c1:c9 have the word "Open".

Thanks.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Try

=SUMPRODUCT(--(C1:C9="Open"),--ISNUMBER(MATCH(B1:B9,{"R","A","G"},0)),A1:A9)
 
Upvote 0
Hi Guys,

Vogs formula works and i can see that it does the correct calucation though it returns the value "True".

Hi Moonfish i am using excel 2007 though would prefer a solution that can be seen in excel 2003 also.

thanks,

Mike
 
Upvote 0
Working here

Excel Workbook
ABCDEF
16AOpen13
25AClosed
34ROpen
43GOpen
52AClosed
Sheet5
 
Upvote 0
Hi guys, whilst you are here,

I am trying to combine the 3 individual formulas into 1 large one...


=IF(AND(I2<=TODAY(),P2<50%),"R","")

=IF(AND(I2<=TODAY(),P2>50%,P2<99%),"A","")

=IF(AND(I2<=TODAY(),P2>100%),"G","")

is this possible???
 
Upvote 0
Hi Vog,

Yes i can see from clicking into the function arguements that it gives me the right result, though for some reason the Format Result comes up as "TRUE". any ideas why??

thanks,

mike
 
Upvote 0
I don't see how it could return TRUE. Make sure that the cell is formatted as General.
 
Upvote 0
Hi Vog,

No my bad, i must have done something wrong, but i have copied the formula over again and it works.

Thanks for your help
 
Upvote 0
Hi Vog,

Do you know how to combine these formulas into 1 please?

=IF(AND(I2<=TODAY(),P2<50%),"R","")

=IF(AND(I2<=TODAY(),P2>50%,P2<99%),"A","")

=IF(AND(I2<=TODAY(),P2>100%),"G","")
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,787
Members
452,942
Latest member
VijayNewtoExcel

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