+ Reply to Thread
Results 1 to 7 of 7

IF Formula

  1. #1
    Registered User
    Join Date
    03-05-2013
    Location
    Beawar (Ajmer)
    MS-Off Ver
    Excel 2016
    Posts
    35

    IF Formula

    Hello friends,

    I want to find the following result with IF formula. How to do it?

    Value Result
    Asalpur JGU
    Khushkhera KGU
    Sikandarabad UPGU
    Udaipur Udasar SGU

    I am trying to use the following formula but it is not working

    =IF(C4="Asalpur",IF(C4="Khushkhera",IF(C4="Sikandarabad",IF(C4="Udaipur Udasar","SGU","UPGU"),"KGU"),"JGU"),"")
    Last edited by lokpal.panwar; 03-04-2023 at 02:27 AM.

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

    Re: IF Formula

    You woud be better off using a VLOOKUP, but:

    =IF(C4="Asalpur","JGU",IF(C4="Khushkhera","KGU",IF(C4="Sikandarabad","UPGU",IF(C4="Udaipur Udasar","SGU",""))))
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: IF Formula

    Please attach a Sample Excel File
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Registered User
    Join Date
    03-05-2013
    Location
    Beawar (Ajmer)
    MS-Off Ver
    Excel 2016
    Posts
    35

    Re: IF Formula

    Thanks a lot ji..

  5. #5
    Registered User
    Join Date
    03-05-2013
    Location
    Beawar (Ajmer)
    MS-Off Ver
    Excel 2016
    Posts
    35

    Re: IF Formula

    Problem is solved Sir,,, thank for your interest

  6. #6
    Forum Expert
    Join Date
    12-09-2014
    Location
    Trakai, Lithuania
    MS-Off Ver
    2016
    Posts
    1,296

    Re: IF Formula

    Formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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 (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,224

    Re: IF Formula

    Glad to have helped.

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

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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. Replies: 3
    Last Post: 03-24-2020, 07:27 AM
  2. Replies: 3
    Last Post: 01-10-2019, 09:34 AM
  3. Replies: 5
    Last Post: 02-16-2018, 06:50 AM
  4. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  5. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  6. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  7. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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