gheyman
Well-known Member
- Joined
- Nov 14, 2005
- Messages
- 2,347
- Office Version
- 365
- Platform
- Windows
I have twenty there columns and I and trying to create a column that will list the column title if that column in that row has a value > 0
If [1q4] >0 then "1q4"
if [5q9] >0 then "5q9"
But I don't want to do an else because if both have a value I need the value in the new column to be 1q4 and 5q9 and so on.
Here is my end goal.
I need to sum the values in 1q4 and 5q9 only for rows where there is a value in both. But the catch is I need to be able to do this in many scenarios like if there is values in 1q4 and 75q99 then sum the rows where there is a value in both.
the "1q4" is a quantity range. I have 23 columns that have the range 1q4, 5q9, 10q24......
So Im thinking that if I have one column that concatenates the title name, if they have a value, I can then create another formula that checks this new column to see if it contains the two ranges I am comparing
I realize this may be confusing, by I can have so many variations I would need to create over 200 individual tables if I did not one by one. And then I would need to append all of them with would take the query forever to run.
I am hoping that my idea if concatenation will eventually lead me to an efficient query or two.
Thanks
If [1q4] >0 then "1q4"
if [5q9] >0 then "5q9"
But I don't want to do an else because if both have a value I need the value in the new column to be 1q4 and 5q9 and so on.
Here is my end goal.
I need to sum the values in 1q4 and 5q9 only for rows where there is a value in both. But the catch is I need to be able to do this in many scenarios like if there is values in 1q4 and 75q99 then sum the rows where there is a value in both.
the "1q4" is a quantity range. I have 23 columns that have the range 1q4, 5q9, 10q24......
So Im thinking that if I have one column that concatenates the title name, if they have a value, I can then create another formula that checks this new column to see if it contains the two ranges I am comparing
I realize this may be confusing, by I can have so many variations I would need to create over 200 individual tables if I did not one by one. And then I would need to append all of them with would take the query forever to run.
I am hoping that my idea if concatenation will eventually lead me to an efficient query or two.
Thanks