SUMIF INDIRECT WITH COLUMN NAMES please help!!! urgent

screaming

New Member
Joined
Nov 17, 2017
Messages
8
Hi all

I am having problems with this formula:

=sumif(indirect("Table1[Current],1,Table1["&$A31&"]"))

the text within the square brackets are column names.
$A31 refers to a cell that has the column name.

I get the error message, you have entered too few arguments.

I can't see anything wrong with the brackets. When I test the string in a concatenate formula it reads correct.

Many thanks
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hello and welcome to the board:
Is A31 your criteria? If so it seems like you should just have:
=sumif(Table1[Current],$A31)

And if you have a separate sum range you need another argument
 
Last edited:
Upvote 0
Hello and welcome to the board:
Is A31 your criteria? If so it seems like you should just have:
=sumif(Table1[Current],$A31)

And if you have a separate sum range you need another argument

The sumif formula is:

=sumif(Table1[Current],1,Table1[Basic Salary])
[Current] is the range
1 is the criteria
[Basic salary] is the sum range

I just need indirect to read this.
 
Upvote 0
Re: SUMIF INDIRECT WITH COLUMN NAMES please help!!! SOLVED

Thank you

I solved this with =sumif(Table1[Current],1,indirect("Table1["&$A31&"]"))

Where sumif is used it looks like indirect needs to appear in separate expressions.
 
Upvote 0

Forum statistics

Threads
1,223,713
Messages
6,174,043
Members
452,542
Latest member
Bricklin

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