+ Reply to Thread
Results 1 to 16 of 16

If multiply cities, show true answer

  1. #1
    Registered User
    Join Date
    08-21-2019
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    10

    If multiply cities, show true answer

    Hello,

    Been trying to get to this IF funtion going but not having any luck.

    If I type a city I want the answer to show if the city is West or East

    Document is attached.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,512

    Re: If multiply cities, show true answer

    How do we know if they are east or west? I don't understand your data - please explain in more detail.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-21-2019
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    10

    Re: If multiply cities, show true answer

    For example we all know California is West therefore function would look like this =IF(ISNUMBER(SEARCH("California",C:C)),"W","E")

    but my column has multiply cities, New York is East, false would show E. Las Vegas would show W which is true.

    Hope this helps!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,512

    Re: If multiply cities, show true answer

    Sorry - I do not understand the data. Where are the lookup lists for east and west?

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,512

    Re: If multiply cities, show true answer

    I am still waiting for you to clarify the data. I am not interested in the formula you think we need - just what raw data we have to work with and what it means. Please don't assume ANY understanding of what you think is obvious.

  6. #6
    Registered User
    Join Date
    08-21-2019
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    10

    Re: If multiply cities, show true answer

    Raw data is attached.
    Attached Files Attached Files

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,512

    Re: If multiply cities, show true answer

    No, sorry - you aren't understanding what we need. How is Excel meant to know whether to assign west or east? Where is the lookup list? There needs to be a master lookup list so that Excel can look at it and assign either east or west accordingly.

  8. #8
    Registered User
    Join Date
    08-21-2019
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    10

    Re: If multiply cities, show true answer

    there is no lookup list that is all I have setup.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,512

    Re: If multiply cities, show true answer

    So what exactly are you trying to do? You haven't yet satisfactorily explained. How are you expecting Excel to decide whether a city should be east or west? Is it something to do with the number?

  10. #10
    Registered User
    Join Date
    08-21-2019
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    10

    Re: If multiply cities, show true answer

    See all the columns with W and E, I don't want to enter them manually. When I type the city I want excel to search the city automatically enter W or E.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,512

    Re: If multiply cities, show true answer

    Yes, I understand that much.

    The question is, how do I know which ones should be W and which ones E? You cannot write a formula without Excel being able to look that up somewhere.

    Do you understand what I am saying here? Excel doesn't know instinctively which cities are in the east and which in the west, and nor do I. Where is Excel meant to search for this?

  12. #12
    Registered User
    Join Date
    08-21-2019
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    10

    Re: If multiply cities, show true answer

    Can we try something simular like this =IF(ISNUMBER(SEARCH("New Orleans",E8)),"W","E") which one works for 1 city

    how about something like =IF(ISNUMBER(SEARCH("New Orleans","Denver","Dallas","Houston","Utah","Okla City","Portland","Sacramento","San Antonio","Phoenix",Minnesota","Memphis",Golden State",E:E)),"W","E") bythe way these are cities in the west

    Do you the cities in East as well ?

  13. #13
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,653

    Re: If multiply cities, show true answer

    With a list and a index/match formula you can do it.
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  14. #14
    Registered User
    Join Date
    08-21-2019
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    10

    Re: If multiply cities, show true answer

    Cool...very much appreciated. Thank you.

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,512

    Re: If multiply cities, show true answer

    All I needed was a lookup list and then I could have provided a solution, like the one you have been offered. If only you had given me that when I first asked for it in post #4 ...

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  16. #16
    Registered User
    Join Date
    08-21-2019
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    10

    Re: If multiply cities, show true answer

    if you have another solution I'm interested in seeing it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Create all combination of cities possible from the given cities
    By piku9290dgp in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-10-2019, 02:55 AM
  2. [SOLVED] Multiply Text Answer = Certain Cell Reponse
    By Ravensp in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-22-2018, 12:33 AM
  3. multiply on a text answer
    By pogo827 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-13-2016, 06:19 AM
  4. Macro to show all codes for cities
    By jw01 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-25-2012, 03:21 PM
  5. Multiply values make up a cell answer
    By riyo91 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-05-2010, 05:56 AM
  6. multiply 2 listboxes and put the answer in a textbox
    By gem in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-20-2006, 08:45 AM
  7. Replies: 5
    Last Post: 06-13-2006, 07:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1