Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using Multiple Variables in an Array with Booleans
Hello,
I am having a bit of a problem using Arrays and Booleans that I was hoping someone could shed some light on. I have a table with mulitple and repeating descriptors that other formulas that gives me a specific number in certain months. For example. In row 1 will have a code number of "2000" which is a code for a certain product. In the next column on the same row I have another descriptor that I type in such as "blue" "green", etc...There are other columns with formulas that give me a specific number on a per month basis. (each month is in its own column) I need to sum all the numbers for a specific month that match both decriptors (code: 2000 and the color green). I have tried Arrays with Booleans, but always get the number zero. Any suggestions would be tremendously welcomed! Thanks for your time. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using Multiple Variables in an Array with Booleans
=SUMPRODUCT((A1:A20=2000)*(B1:B20="green")*(OFFSET (C1,0,month-1,20)))
The 20 in the OFFSET refers to the 20 rows, adjust with the ranges. -- --- HTH Bob (change the xxxx to gmail if mailing direct) "cardan" wrote in message s.com... Hello, I am having a bit of a problem using Arrays and Booleans that I was hoping someone could shed some light on. I have a table with mulitple and repeating descriptors that other formulas that gives me a specific number in certain months. For example. In row 1 will have a code number of "2000" which is a code for a certain product. In the next column on the same row I have another descriptor that I type in such as "blue" "green", etc...There are other columns with formulas that give me a specific number on a per month basis. (each month is in its own column) I need to sum all the numbers for a specific month that match both decriptors (code: 2000 and the color green). I have tried Arrays with Booleans, but always get the number zero. Any suggestions would be tremendously welcomed! Thanks for your time. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Declare Variables in Array | Excel Discussion (Misc queries) | |||
Using booleans in sumproduct formulas to extract boolean range | Excel Worksheet Functions | |||
Variables in Declaring an Array | Excel Programming | |||
Fill array with fn variables that vary across and down? | Excel Worksheet Functions | |||
How to use array formula for three variables? | Excel Discussion (Misc queries) |