Forum Discussion
Formula Working for Only Part of a Column in a Table
- Nov 15, 2022
Or
=IF(OR([@Container]=$T$4, [@Container]=$T$7, [@Container]=$T$14),[@[Per Piece w/ Discount Plus Shipping]],[@[Per Flat w/ Discount Plus Shipping]])*VLOOKUP([@Container],ecost7[[Container]:[Ecost Factor]],2,FALSE)
Thanks. I fear I'd have to see the setup. Could you attach a small sample workbook demonstrating the problem (without sensitive data), or if that is not possible, make it available through OneDrive, Google Drive, Dropbox or similar?
Here's the file. I hid the columns used in previous calculations but aren't referenced in this formula.
- HansVogelaarNov 15, 2022MVP
Or
=IF(OR([@Container]=$T$4, [@Container]=$T$7, [@Container]=$T$14),[@[Per Piece w/ Discount Plus Shipping]],[@[Per Flat w/ Discount Plus Shipping]])*VLOOKUP([@Container],ecost7[[Container]:[Ecost Factor]],2,FALSE)
- ToddMulderNov 15, 2022Copper ContributorI spoke too soon. It worked on the test worksheet I attached but when I type it into the full spreadsheet I get the same error. Is it possible other data in the spreadsheet, even if it's not used in the formula, can affect this?
- ToddMulderNov 15, 2022Copper ContributorMy apologies. After a little more digging, I've got it. Thanks again!
- ToddMulderNov 15, 2022Copper ContributorThis worked! Thank you!
- Patrick2788Nov 15, 2022Silver Contributor
I believe this is what you were going for:
=LET(v,VLOOKUP([@Container],ecost7[#All],2,FALSE),IF(OR(G4=$T$4, G4=$T$7, G4=$T$14),N4*v,L4*v))- ToddMulderNov 15, 2022Copper ContributorI tried this but am now getting a #NAME? error.