Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default I need your help Dear Vba Guru's..."Creating range in a variable data.."

My Dear Vba Guru's,

I'm doing a "sumif" formula for this project, my range is the "code"
and "downloads". My problem is the "code" is based on the "content
type" column and the "code" is only unique per "content type" If i make
a "sumif" formula without creating a range per content type group my
value will be overstated since the formula will compute also the same
code which is belong to the other "content type". The content type
range always varies so i can't make a fixed range also. Here's the
table below for your reference;

Content Type Code
Downloads
Anime a
1
Anime a
1
Anime b
1
Logos c
1
Logos a
1
Logos b
1
Ringtones e
1
Rintones b
1


Many many thanks in advance!!!

Jerome

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default I need your help Dear Vba Guru's..."Creating range in a variable data.."

=sumproduct(--(A1:A100="Anime"),--(B1:B100="a"))

--
Regards,
Tom Ogilvy



wrote in message
oups.com...
My Dear Vba Guru's,

I'm doing a "sumif" formula for this project, my range is the "code"
and "downloads". My problem is the "code" is based on the "content
type" column and the "code" is only unique per "content type" If i make
a "sumif" formula without creating a range per content type group my
value will be overstated since the formula will compute also the same
code which is belong to the other "content type". The content type
range always varies so i can't make a fixed range also. Here's the
table below for your reference;

Content Type Code
Downloads
Anime a
1
Anime a
1
Anime b
1
Logos c
1
Logos a
1
Logos b
1
Ringtones e
1
Rintones b
1


Many many thanks in advance!!!

Jerome



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default I need your help Dear Vba Guru's..."Creating range in a variable data.."

Thanks a lot Tom!! It works!!! Great!!!

Tom Ogilvy wrote:
=sumproduct(--(A1:A100="Anime"),--(B1:B100="a"))

--
Regards,
Tom Ogilvy



wrote in message
oups.com...
My Dear Vba Guru's,

I'm doing a "sumif" formula for this project, my range is the "code"
and "downloads". My problem is the "code" is based on the "content
type" column and the "code" is only unique per "content type" If i make
a "sumif" formula without creating a range per content type group my
value will be overstated since the formula will compute also the same
code which is belong to the other "content type". The content type
range always varies so i can't make a fixed range also. Here's the
table below for your reference;

Content Type Code
Downloads
Anime a
1
Anime a
1
Anime b
1
Logos c
1
Logos a
1
Logos b
1
Ringtones e
1
Rintones b
1


Many many thanks in advance!!!

Jerome


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
creating a "date selector box" or "pull down box" in a cell GaryK Excel Worksheet Functions 2 September 30th 09 01:45 AM
"Type mismatch" when I try to fill an Array variable with "+" [email protected] Excel Discussion (Misc queries) 1 April 17th 07 01:28 PM
use variable in Workbooks("book1").Worksheets("sheet1").Range("a1" Luc[_3_] Excel Programming 2 September 28th 05 08:37 PM
Adding "New" "Insert" "Delete" into a workbook to change from data 1 to data 2 etc Bob Reynolds[_2_] Excel Programming 0 March 4th 04 08:52 PM
Exel2000 VBA - Creating a Command Bar - Error: "Object Variable or With not Set" keepitcool Excel Programming 0 August 11th 03 12:29 PM


All times are GMT +1. The time now is 06:37 AM.

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"