• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Help with If Statement

mithil1

Member
If there are several 10 Cities in a single column. Newyork,LA, SF, Orlando, Chicago, Washington, London, Tokyo, Pretoria, Nairobi and if these cities matches with a particular criteria i.e. Metropolitan then value for true should be 1000 or else blank

Thanks
 
Hey Bosco,

Thanks. I will try if that works. By the way, how are you able to figure the formulas out in excel. Have you done taken any formal training ?

Mithil
 
Hi Bosco,

This is not working out. Because it is also pulling the data for the A1= Metropolitan.

What I need to do is A1 = Metropolitan only and the several city criterias

Mithil
 
Can I use the same syntax if the critera is "Newyork 1" or "Newyork AB"

…..This is not working out. Because it is also pulling the data for the A1= Metropolitan. What I need to do is A1 = Metropolitan only and the several city criterias

Hi,

It is not clear of your requirement.

Could you upload a sample data file together with the expected result.

Regards
Bosco
 
Hi Mithil,
Good Day...

Another way is to make a simple table, and then use a simple VLOOKUP:
=IFERROR(IF(VLOOKUP(A1,$F$1:$G$14,2,0)="Metropolitan",1000,""),"")

See the attached sample.

Regards,
 

Attachments

  • Book1.xlsx
    10.1 KB · Views: 5
hi Khalid,

Thanks for the reply. This is not working out because I just don't have "Metropolitan" but for example :Metropolitan, Metropolitan 1, Metropolitan 2 etc.



Hi Mithil,
Good Day...

Another way is to make a simple table, and then use a simple VLOOKUP:
=IFERROR(IF(VLOOKUP(A1,$F$1:$G$14,2,0)="Metropolitan",1000,""),"")

See the attached sample.

Regards,[/quote
 
Back
Top