Share via

Help with Excel formula

Anonymous
2024-08-25T16:18:40+00:00

Hello. I need help with an Excel formula. Example below:

Cell e15 shows 100 mcfd

Cell b15 shows 80 mcfd

I need cell f15 to calculate the difference between the two, which would be 20 mcfd. However, i keep getting an error and I’m assuming it’s because of the “mcfd” not being a number.

Microsoft 365 and Office | Excel | Other | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2024-08-25T16:53:41+00:00

Option 1:

Enter 80 in B15 and 100 in E15.

In F15, enter the formula =E15-B15.

Apply the custom number format

0 "mcfd"

To B15, E15, F15 and all other cells with similar data.

Option 2:

Enter the following formula in F15:

=SUBSTITUTE(E15, " mcfd", "")-SUBSTITUTE(B15, " mcfd", "")&" mcfd"

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2024-08-25T18:40:52+00:00

    Perfect! Thanks for the help. Option 2 did the trick for me.

    Was this answer helpful?

    0 comments No comments