Hello! I'm trying to get an equation to work for a peppercorn blend form I have, where changing cell B2 from Gram to TSP (teaspoon) will change the output in the Total cells. See below for the form.
TSP Field Selected - https://i.imgur.com/FIHDDor.png
Gram Field Selected - https://i.imgur.com/rrDPZo2.png
Video of Form - https://screencast-o-matic.com/watch/cFnOqvDnAi
My current equation for the TSP field being selected, which works, is:
=IF($B$1="TSP",(IFERROR(VLOOKUP(A2,matrix,2,0),"")))*B2
When I select Gram from the drop down (B1) I'd like the value under Total to equal what I type in under the Gram cell. So 4 in B2 would output 4 in C2.
I'm not sure if this makes sense. The formula I had thought to use was the following, but it comes up with an error:
=IF($B$1="TSP",((IFERROR(VLOOKUP(A2,matrix,2,0),"")))*B2,),$B$1="Gram",B2*1))
Any help would be greatly appreciated!
TSP Field Selected - https://i.imgur.com/FIHDDor.png
Gram Field Selected - https://i.imgur.com/rrDPZo2.png
Video of Form - https://screencast-o-matic.com/watch/cFnOqvDnAi
My current equation for the TSP field being selected, which works, is:
=IF($B$1="TSP",(IFERROR(VLOOKUP(A2,matrix,2,0),"")))*B2
When I select Gram from the drop down (B1) I'd like the value under Total to equal what I type in under the Gram cell. So 4 in B2 would output 4 in C2.
I'm not sure if this makes sense. The formula I had thought to use was the following, but it comes up with an error:
=IF($B$1="TSP",((IFERROR(VLOOKUP(A2,matrix,2,0),"")))*B2,),$B$1="Gram",B2*1))
Any help would be greatly appreciated!