mischifous
New Member
- Joined
- Mar 14, 2016
- Messages
- 35
- Office Version
- 365
- Platform
- Windows
Hi all,
I have been using excel every day for years and this would make my life 1000x times easier.
Is it possible to do a conditional function on a range of cells where if it equals a specific, non-fixed, criteria, the value from the same column but separate row is output, with the output location being a completely separate row of the document with the same range length. Also, it would be of value to me if this could be also done where the output is not in a row with the same range length, but all the values are just put into cells one after another right by each other in the output field.
Let me explain. The outputs variations I would like to be able to do are colored in blue and green.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]4Qe[/TD]
[TD]FY18[/TD]
[TD]3Qe[/TD]
[TD]FY19[/TD]
[TD]FY20[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]$5[/TD]
[TD]$40[/TD]
[TD]$3[/TD]
[TD]$51[/TD]
[TD]$66[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]
[/TD]
[TD]$40[/TD]
[TD]
[/TD]
[TD]$51[/TD]
[TD]$66[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]FY18[/TD]
[TD]FY19[/TD]
[TD]FY20[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]$40[/TD]
[TD]$51[/TD]
[TD]$66[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
So i have the two output formats above. One in row #5 and the other in row #8 and #9 .
If Row A1:E1 has LEFT(??,2)="FY", then take the corresponding value in row #2 , and output it into corresponding cell range in row #5 .
If Row A1:E1 has LEFT(??,2)="FY", then take the corresponding values in row #1 (the header row) AND row #2 (the value row), and put it side by side in rows #8 & #9 , for however many values such argument is TRUE.
Do i need VBA for this?
Much appreciated
I have been using excel every day for years and this would make my life 1000x times easier.
Is it possible to do a conditional function on a range of cells where if it equals a specific, non-fixed, criteria, the value from the same column but separate row is output, with the output location being a completely separate row of the document with the same range length. Also, it would be of value to me if this could be also done where the output is not in a row with the same range length, but all the values are just put into cells one after another right by each other in the output field.
Let me explain. The outputs variations I would like to be able to do are colored in blue and green.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]4Qe[/TD]
[TD]FY18[/TD]
[TD]3Qe[/TD]
[TD]FY19[/TD]
[TD]FY20[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]$5[/TD]
[TD]$40[/TD]
[TD]$3[/TD]
[TD]$51[/TD]
[TD]$66[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]
[/TD]
[TD]$40[/TD]
[TD]
[/TD]
[TD]$51[/TD]
[TD]$66[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]FY18[/TD]
[TD]FY19[/TD]
[TD]FY20[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]$40[/TD]
[TD]$51[/TD]
[TD]$66[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
So i have the two output formats above. One in row #5 and the other in row #8 and #9 .
If Row A1:E1 has LEFT(??,2)="FY", then take the corresponding value in row #2 , and output it into corresponding cell range in row #5 .
If Row A1:E1 has LEFT(??,2)="FY", then take the corresponding values in row #1 (the header row) AND row #2 (the value row), and put it side by side in rows #8 & #9 , for however many values such argument is TRUE.
Do i need VBA for this?
Much appreciated
Last edited: