Should be easy... substituting > for {1}

Jennifre

Board Regular
Joined
Jan 11, 2011
Messages
160
I am using a formula though need to change part of it to be a >## instead of just showing returns if it IS a certain number.

Here's what I need the formula to be, though the {>29.99} part is giving me the error, "Your formula contains an error", and if I use instead {1} it works fine.

How can I indicate >29.99 in the red characters below? Thanks so much!! :)

Works:
Code:
=SUMPRODUCT(
--($DG$2:$DG$1364=$HF3),
--ISNUMBER(MATCH($DL$2:$DL$1364,{1},0)))/
SUMPRODUCT(
--($DG$2:$DG$1364=$HF3))
Does not work:
Code:
=SUMPRODUCT(
--($DG$2:$DG$1364=$HF3),
--ISNUMBER(MATCH($DL$2:$DL$1364,{[COLOR=Red]>29.99[/COLOR]},0)))/
SUMPRODUCT(
--($DG$2:$DG$1364=$HF3))
 

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.
I am using a formula though need to change part of it to be a >## instead of just showing returns if it IS a certain number.

Here's what I need the formula to be, though the {>29.99} part is giving me the error, "Your formula contains an error", and if I use instead {1} it works fine.

How can I indicate >29.99 in the red characters below? Thanks so much!! :)

Works:

=SUMPRODUCT(
--($DG$2:$DG$1364=$HF3),
--ISNUMBER(MATCH($DL$2:$DL$1364,{1},0)))/
SUMPRODUCT(
--($DG$2:$DG$1364=$HF3))

Does not work:

=SUMPRODUCT(
--($DG$2:$DG$1364=$HF3),
--ISNUMBER(MATCH($DL$2:$DL$1364,{>29.99},0)))/
SUMPRODUCT(
--($DG$2:$DG$1364=$HF3))
Do you want to test the range to see if it contains the literal string >29.99 or do you want to test the range to see if contains numeric values greater than 29.99?
 
Upvote 0
Well... I need to find numeric values greater than or equal to 30 if that's possible. Or greater than 29.99. But NOT the literal ">29.99".

Thanks, T.Valko :)
 
Upvote 0
Well... I need to find numeric values greater than or equal to 30 if that's possible. Or greater than 29.99. But NOT the literal ">29.99".

Thanks, T.Valko :)
OK, try it like this...

=SUMPRODUCT(--($DG$2:$DG$1364=$HF3),--($DL$2:$DL$1364>=30))/COUNTIF(
$DG$2:$DG$1364,$HF3)

If you're using Excel 2007 or later:

=COUNTIFS($DG$2:$DG$1364,$HF3,$DL$2:$DL$1364,">=30")/COUNTIF(
$DG$2:$DG$1364,$HF3)
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,550
Members
452,927
Latest member
rows and columns

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