Andreasegeland
New Member
- Joined
- Jan 24, 2019
- Messages
- 4
Dear Community,
I am currently trying to do a VLookup and I was hoping you guys could help me save some time. I want to lookup multiple text inputs and return the greatest value among those inputs. I am sure this is a simple task and I am afraid I have over complicated it. This is for a structural engineering purpose where I am trying to find the maximum deflection of beams. The basics behind it is that the primary beams carry the secondary beams. If the primary beams deflect, the secondary will have added deflection to their total deflection. I will be doing a lot of changes to the layout of beams and the design will most likely change, so I need a way to keep track of my total deflection in an efficient way. Therefore, I wish to write a string which I believe would be something like this:
D2= C2+(IF_lookup B1 = SECONDARY, VLOOKUP_E2 (beampair)_return highest value of beams in column A or F corresponding to those listed in beampair E2, IF_lookup B1 = PRIMARY, FALSE/0)
The reason it is complicated is that for example in row 6 column E. There are more than one primary beam, so the total value of deflection D6 needs to have C6 + the highest of those listed in the beam pair. I don't know how it works when you have commas like these and text.
I would appreciate any attempts on this, and I would be happy to learn from this because I have a feeling it can be done in an easier way.
Thank you in advance,
Andreas
[TABLE="width: 1917"]
<colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"][/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[TD]J[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD]BEAM CALC REF[/TD]
[TD]PRIMARY/SECONDARY[/TD]
[TD]DEFLECTION (mm)[/TD]
[TD]TOTAL DEFLECTION (INC PRIMARY BEAM DEFLECTIONS) (mm)[/TD]
[TD] BEAM PAIR[/TD]
[TD] [/TD]
[TD]BEAM CALC REF [/TD]
[TD]PRIMARY/SECONDARY[/TD]
[TD]DEFLECTION (mm)[/TD]
[TD]TOTAL DEFLECTION (INC PRIMARY BEAM DEFLECTIONS) (mm)[/TD]
[TD]BEAM PAIR[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]FB01A[/TD]
[TD]SECONDARY[/TD]
[TD]34.3[/TD]
[TD]=C2 + VLOOKUP (FB02, SB03) [/TD]
[TD] FB02[/TD]
[TD][/TD]
[TD]SB01[/TD]
[TD]PRIMARY[/TD]
[TD]5[/TD]
[TD]=F2[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD]F B01B[/TD]
[TD]SECONDARY[/TD]
[TD]13.8[/TD]
[TD]=C3 + VLOOKUP [/TD]
[TD] FB34[/TD]
[TD][/TD]
[TD]SB02[/TD]
[TD]PRIMARY[/TD]
[TD] 4[/TD]
[TD]=F3[/TD]
[TD] FB05A[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD]FB02A[/TD]
[TD]PRIMARY[/TD]
[TD]11.1[/TD]
[TD]=C4[/TD]
[TD] FB01A[/TD]
[TD][/TD]
[TD]SB03[/TD]
[TD]PRIMARY[/TD]
[TD]31[/TD]
[TD]=F4[/TD]
[TD] FB01A + FB05A[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD]FB02B[/TD]
[TD]PRIMARY[/TD]
[TD]18.9[/TD]
[TD]=C5[/TD]
[TD] SB06[/TD]
[TD][/TD]
[TD] SB04[/TD]
[TD]SECONDARY[/TD]
[TD] 11[/TD]
[TD] =F5 + VLOOKUP[/TD]
[TD] FB34[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD]FB05A[/TD]
[TD]SECONDARY[/TD]
[TD]4.2[/TD]
[TD]=C6 + VLOOKUP[/TD]
[TD] SB02, SB03, SB05[/TD]
[TD][/TD]
[TD]SB05[/TD]
[TD]PRIMARY[/TD]
[TD] 12[/TD]
[TD]=F6[/TD]
[TD]FB05A [/TD]
[/TR]
</tbody>[/TABLE]
I am currently trying to do a VLookup and I was hoping you guys could help me save some time. I want to lookup multiple text inputs and return the greatest value among those inputs. I am sure this is a simple task and I am afraid I have over complicated it. This is for a structural engineering purpose where I am trying to find the maximum deflection of beams. The basics behind it is that the primary beams carry the secondary beams. If the primary beams deflect, the secondary will have added deflection to their total deflection. I will be doing a lot of changes to the layout of beams and the design will most likely change, so I need a way to keep track of my total deflection in an efficient way. Therefore, I wish to write a string which I believe would be something like this:
D2= C2+(IF_lookup B1 = SECONDARY, VLOOKUP_E2 (beampair)_return highest value of beams in column A or F corresponding to those listed in beampair E2, IF_lookup B1 = PRIMARY, FALSE/0)
The reason it is complicated is that for example in row 6 column E. There are more than one primary beam, so the total value of deflection D6 needs to have C6 + the highest of those listed in the beam pair. I don't know how it works when you have commas like these and text.
I would appreciate any attempts on this, and I would be happy to learn from this because I have a feeling it can be done in an easier way.
Thank you in advance,
Andreas
[TABLE="width: 1917"]
<colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"][/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[TD]J[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD]BEAM CALC REF[/TD]
[TD]PRIMARY/SECONDARY[/TD]
[TD]DEFLECTION (mm)[/TD]
[TD]TOTAL DEFLECTION (INC PRIMARY BEAM DEFLECTIONS) (mm)[/TD]
[TD] BEAM PAIR[/TD]
[TD] [/TD]
[TD]BEAM CALC REF [/TD]
[TD]PRIMARY/SECONDARY[/TD]
[TD]DEFLECTION (mm)[/TD]
[TD]TOTAL DEFLECTION (INC PRIMARY BEAM DEFLECTIONS) (mm)[/TD]
[TD]BEAM PAIR[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]FB01A[/TD]
[TD]SECONDARY[/TD]
[TD]34.3[/TD]
[TD]=C2 + VLOOKUP (FB02, SB03) [/TD]
[TD] FB02[/TD]
[TD][/TD]
[TD]SB01[/TD]
[TD]PRIMARY[/TD]
[TD]5[/TD]
[TD]=F2[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD]F B01B[/TD]
[TD]SECONDARY[/TD]
[TD]13.8[/TD]
[TD]=C3 + VLOOKUP [/TD]
[TD] FB34[/TD]
[TD][/TD]
[TD]SB02[/TD]
[TD]PRIMARY[/TD]
[TD] 4[/TD]
[TD]=F3[/TD]
[TD] FB05A[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD]FB02A[/TD]
[TD]PRIMARY[/TD]
[TD]11.1[/TD]
[TD]=C4[/TD]
[TD] FB01A[/TD]
[TD][/TD]
[TD]SB03[/TD]
[TD]PRIMARY[/TD]
[TD]31[/TD]
[TD]=F4[/TD]
[TD] FB01A + FB05A[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD]FB02B[/TD]
[TD]PRIMARY[/TD]
[TD]18.9[/TD]
[TD]=C5[/TD]
[TD] SB06[/TD]
[TD][/TD]
[TD] SB04[/TD]
[TD]SECONDARY[/TD]
[TD] 11[/TD]
[TD] =F5 + VLOOKUP[/TD]
[TD] FB34[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD]FB05A[/TD]
[TD]SECONDARY[/TD]
[TD]4.2[/TD]
[TD]=C6 + VLOOKUP[/TD]
[TD] SB02, SB03, SB05[/TD]
[TD][/TD]
[TD]SB05[/TD]
[TD]PRIMARY[/TD]
[TD] 12[/TD]
[TD]=F6[/TD]
[TD]FB05A [/TD]
[/TR]
</tbody>[/TABLE]