+ Reply to Thread
Results 1 to 4 of 4

IF function issue

Hybrid View

  1. #1
    Registered User
    Join Date
    03-04-2013
    Location
    york, pa
    MS-Off Ver
    Excel 2003
    Posts
    5

    IF function issue

    I had a bad post title so I started a new post because I couldn't figure out how to change the title or delete that post.

    I need help with a formula. Cell e22 has 9 in the cell. In cell e23 I want a formula that does this: If cell e22 is greater than 8 subtract 8 from that amount (9-8) and then multiply that by 255 (1x255), if there is nothing in e22 then I don't want anything in e23. Make sense? I have tried both of the following formulas
    =IF(E22>8,E22-8,E23="")

    =IF(E22>8,E22-8,"")
    I am not sure what i am doing wrong can anyone help me?

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: IF function issue

    IN Cell E23:
    =IF(E22="","", IF(E22>8,(E22-8)*255,""))

    Hope that helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2407 Win 11 Home 64 Bit
    Posts
    24,077

    Re: IF function issue

    self deleted. Missed a step.
    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

  4. #4
    Registered User
    Join Date
    12-16-2012
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010 & 2007
    Posts
    66

    Re: IF function issue

    Dredwolf's summary is a little more complicated, in that cell E23 will be blank if E22 is blank also. I do that for almost all spreadsheets I set up, because it's neater when you don't have data entered.

    But to have the "bare bones" equation, just =IF(E22>8,(E22-8)*255,"") will do what you ask.

+ 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