We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Excel Code Error

Cotta
Cotta Posts: 3,667 Forumite
Hi All,

I'm trying to use the following code to return values based on what is in cells F3 and C3, however the following code is not being accepted - does anyone know where I've went wrong?

=IFERROR(IF(F3="Man City",IF(LEFT(C3,2)="PL","Champion",IF(LEFT(C3,1)="W","Liverpool",IF(LEFT(C3,1)="S","Liverpool",IF(LEFT(C3,1)="G","Liverpool")))),IF(G3="ManchesterUtd",IF(LEFT(C3,1)="M","Manchester",IF(LEFT(C3,1)="H","ManchesterCity")),F3)),F3)

Thanks

Comments

  • rmg1
    rmg1 Posts: 3,159 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    It seems to work for me. The only issue I can see if there's a space in the LEFT just after the second "Liverpool" which might cause a few problems.
    :wall: Flagellation, necrophilia and bestiality - Am I flogging a dead horse? :wall:

    Any posts are my opinion and only that. Please read at your own risk.
  • Cotta
    Cotta Posts: 3,667 Forumite
    Thanks, the space was the problem.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 352.1K Banking & Borrowing
  • 253.5K Reduce Debt & Boost Income
  • 454.2K Spending & Discounts
  • 245.1K Work, Benefits & Business
  • 600.7K Mortgages, Homes & Bills
  • 177.5K Life & Family
  • 258.9K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.