I need a sum to count how many rows have a word from field Alpha in one column as well as a number from field Beta in another column.
Anyone know how I would do this?
Thanks
I need a sum to count how many rows have a word from field Alpha in one column as well as a number from field Beta in another column.
Anyone know how I would do this?
Thanks
See if this helps
Sums range B1 to B10 if A1 to A10 equals Alpha
Note: Sumproduct doesn't allow you to use the whole Column=SUMPRODUCT(--(A1:A10="Alpha")*(B1:B10))
VBA Noob
_________________________________________
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
Thankyou for looking and helping but that isnt looking for field Beta in another column
Are you saying the word Beta is in Col B and your summing a third column ??
A sample of your data and cols etc would help
VBA Noob
Originally Posted by VBA Noob
Sorry if Im not explaining it well
a third column has no relevence at all, i want to know how many ROWs have Alpha field in Column A as well as Beta Field in column B.
No example so guessing again
This will count the string Alpha Field in Col A and Beta Field in Col B if there in the same row
VBA Noob=SUMPRODUCT(--(A1:A10="Alpha Field")*(B1:B10="Beta Field"))
Originally Posted by VBA Noob
Yay, I think we are nearly there, Thankyou lots.
However I am getting the result 0 but I know some of these rows exist.
Is that sum you gave me just counting columns with the words Alpha Field or is it counting columns with any of the words in the list I have set named Alpha Field?
maybe 'field' isnt the word but I dont know what is, its a while since I last worked on this.
Post a example so I can see. Can't keep guessing all night
VBA Noob
Here is an example of what I meant, 'field' was the wrong word.
see how this list of words has been named Fruitlist
http://www.contextures.com/images/DV07.gif
I need to count how many rows have a word from one list in one column as well as a number from another list in a different column.
Last edited by Mog666; 11-25-2007 at 02:20 PM.
So you have two named ranges called "Alpha" and "Beta" and you want to count when each row isn't blank
VBA Noob=SUMPRODUCT(--(Alpha<>"")*(Beta<>""))
Originally Posted by VBA Noob
You've lost me, however you have helped with half my problem with your previous answer, I just need to change it somehow so thankyou I will continue researching.
You lost me first. If you took the time to upload a sample file as I've being asking you would of got an answer by nowYou've lost me
VBA Noob
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks