# Formula Help

Options

Hi all,

I am trying to create a formula that says If "Product delivery location is xxx" provide the average of the "cost per LB" column.

I'd appreciate any help!!

• ✭✭✭✭✭
Options

Could you please share an image for better clarity?

What I gathered from your question is.

=IF(XXX = XXX@row, AVG(cost per LB:cost per LB),"")

Thanks & Regards

Khasim

SSPM Consultants

Email ID: info@sspmconsultants.com

• Options

Hi @Khasim

• ✭✭✭✭✭
Options

Hello @Elaine Mullis

Did you try this?

Thanks & Regards

Khasim

SSPM Consultants

Email ID: info@sspmconsultants.com

• Options

@Khasim Please see attached it is giving an error

• ✭✭✭✭✭
Options

Please use cell@row like mentioned below

=IF(Costoco Mira xxx=Costoco Mira xxx@row, AVG([cost per LB]: [cost per LB]),"")

Thanks & Regards

Khasim

SSPM Consultants

Email ID: info@sspmconsultants.com

• Options

@Khasim Please see attached - I still received an error for some reason

• ✭✭✭✭✭
edited 09/22/22
Options

Your missing square brackets in the formula. Kindly Check the formula. It will help

Thanks & Regards

Khasim

SSPM Consultants

Email ID: info@sspmconsultants.com

• Options

I did a copy & paste = =IF(YMCO - 217 Read St Portland ME 04103=YMCO - 217 Read St Portland ME 04103 @row, AVG([cost per LB]:[cost per LB]),"")

@Khasim

• ✭✭✭✭✭
Options

I need to check what mistake your doing. Is it okay to share the sheet with me?

Thanks & Regards

Khasim

SSPM Consultants

Email ID: info@sspmconsultants.com

• ✭✭✭✭✭✭
Options

I hope you're well and safe!

Try something like this. (You can update the LocationA to reference a specific cell instead)

Did that work/help?

I hope that helps!

Be safe, and have a fantastic weekend!

Best,

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!

SMARTSHEET EXPERT CONSULTANT & PARTNER

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!