# Help with SUMIF using a cell as a reference

1. ## Help with SUMIF using a cell as a reference

I would like the SUMIF to work so that the criteria searches for whatever is in cell C130. This is so if the text changes the formals automatically does too.

=((SUMIF(\$A\$6:\$A\$114, "*"&C130&"*",\$BF\$6:\$BF\$114 ))/\$BF\$117)

2. ## Re: Help with SUMIF using a cell as a reference

That looks like it should work, though you don't need all those brackets - try it like this:

=SUMIF(\$A\$6:\$A\$114, "*"&C130&"*",\$BF\$6:\$BF\$114 )/\$BF\$117

In what way is it not working for you?

Pete

3. ## Re: Help with SUMIF using a cell as a reference

Thank you for the brackets help but gave it a go and no luck.

The problem is it wont give any figure or in this case a percentage.

Excel SUMIF help.png

Its odd because the cell above it works which as this formula:

=SUMIF(\$A\$6:\$A\$114, "*"&C129&"*",\$BF\$6:\$BF\$114 )/\$BF\$117

The figures should be the same as in the table above but they are using text specific formals:

=((SUMIF(\$A\$6:\$A\$114,"*Cornbury*",BF6:BF114))/\$BF\$117)

I wanted to separate the percentages from the numbers in to different tables and make the formulas none text specific as the spreadsheet is going to be much larger with many different ranges.

Hope that helps, let me know if you need anything else.

Thanks again,
Richard

4. ## Re: Help with SUMIF using a cell as a reference

Perhaps the "Cornbury" that is in cell C129 has a space after it, in which case it will not match with those in column A.

You can check for this by using =LEN(C129) in a blank cell somewhere - do you get 8 for that?

If it is still a problem, then it would help if you attached a sample Excel workbook, rather than a picture of one.

To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

Please note that the Paperclip icon (Attachments button) does not work.

Hope this helps.

Pete

Pete

5. ## Re: Help with SUMIF using a cell as a reference

Hi Pete,

Thanks for the help, it ended up being a space of all things.

I have another question, I don't mind starting another thread if that's what I have to do. Problem listed below and spreadsheet should now be uploaded.

To stop the problem of the range not being copies properly and to make things a little more automatic I want the range column in the breakdown table to automatically update with the ranges from column A but only one like it is at the moment.

Is this possible?

Thanks for the help, new to here.

Many thanks again,
Richard

There are currently 1 users browsing this thread. (0 members and 1 guests)