Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Refer a column in the 'sumif' function

Hi, I am trying to supply column values to the sumif function, but have not
had any success yet. Here's what the macro coded-

Range("B34").Select
ActiveCell.FormulaR1C1 = _
"=SUMIF('LCY Balances'!C6,'By Type'!RC1,'LCY Balances'!C7)"

if simply used in excel this would read as -

=SUMIF('LCY Balances'!$F:$F,'By Type'!$A34,'LCY Balances'!$G:$G)

What I am trying to do is - to make the sumif function sum up values in
sheet "By Type" in the column referred to by a number in row32 of the active
cell/column - in this case 7 (columnG:G)

I've tried to be as detailed as possible but do let me know if you need
further details. Will be glad if somebody offers a solutions soon!

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Refer a column in the 'sumif' function

No help? Anyone?

"Kanecha" wrote:

Hi, I am trying to supply column values to the sumif function, but have not
had any success yet. Here's what the macro coded-

Range("B34").Select
ActiveCell.FormulaR1C1 = _
"=SUMIF('LCY Balances'!C6,'By Type'!RC1,'LCY Balances'!C7)"

if simply used in excel this would read as -

=SUMIF('LCY Balances'!$F:$F,'By Type'!$A34,'LCY Balances'!$G:$G)

What I am trying to do is - to make the sumif function sum up values in
sheet "By Type" in the column referred to by a number in row32 of the active
cell/column - in this case 7 (columnG:G)

I've tried to be as detailed as possible but do let me know if you need
further details. Will be glad if somebody offers a solutions soon!

Thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
refer to whole column Ken Excel Discussion (Misc queries) 2 February 3rd 10 10:58 PM
make criteria in sumif refer to another cell keithjdowling Excel Worksheet Functions 4 May 31st 06 02:17 AM
Improve SUMIF function to sum more than one column Mark Rucker Excel Worksheet Functions 3 August 10th 05 08:55 PM
refer to cell using the value in Row 1 and column A Chip Excel Programming 3 June 22nd 05 04:45 PM
Refer to a column Patti[_2_] Excel Programming 3 January 19th 04 07:46 PM


All times are GMT +1. The time now is 06:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"