+ Reply to Thread
Results 1 to 4 of 4

Need help with a LOGIC/IF formula.

  1. #1
    Registered User
    Join Date
    01-29-2013
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2010
    Posts
    14

    Need help with a LOGIC/IF formula.

    table.jpg

    Please see the attached image for the chart.

    i need to get the col C formulated.

    So in col C i need if A2=ACC01 and B2=22400 then C2=CR
    If A2= ACC01 and B2 = 52000 then C2 = DR
    If A2 = PI and B2 = 22400 then C2 = DR
    if A2 = PI and B2 = 52000 then C2 = NA
    if error = N/A

    I hope it made sense

    Cheers!!
    table.jpg

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Need help with a LOGIC/IF formula.

    Try this out: =if(and(A2="ACC01",B2=52000),"DR",If(And(a2="PI",B2=22400),"DR",If(and(A2="PI",B2=52000),"NA","N/A")))
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Need help with a LOGIC/IF formula.

    Hi and welcome to the forum

    It helps if you upload a sample workbook, instead of a pic. but try this....

    =iferror(if(A2="ACC01",if(B2=22400,"CR",DR),if(B2=22400,"DR","NA"),"N/A")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    01-29-2013
    Location
    San Francisco, CA
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Need help with a LOGIC/IF formula.

    Thanks. I will remember that!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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