+ Reply to Thread
Results 1 to 8 of 8

creating rule to adjust fields..

Hybrid View

  1. #1
    Registered User
    Join Date
    03-01-2009
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    6

    creating rule to adjust fields..

    ok.. first of all..

    I'm a complete Excel newb..
    secondly.. I have no idea how to compose a proper topic title for my problem.. so I hope it makes sense..

    I want to do what I've highlighted in the image attached...

    it might be super simple.. but I have no idea how.

    well, there's alot more I want to add, but this is a start, and will let me get on with it.

    hope you can help!
    Attached Images Attached Images

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: creating rule to adjust fields..

    Don't really need the image, you could post that verbiage in yellow into your question and it's pretty clear.

    =IF(C5="x",E2/1000*B9*C18,0)

    You didn't indicate what to do if C5 doesn't have an "x" in it, so I just inserted a zero.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    03-01-2009
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: creating rule to adjust fields..

    Thanks!!!

    well.. ok. .no I guess I didn't.

    what I need is for the result to take into account is:

    IF x in C5 then E2 / 1000*B9*C18, if x in D5 then E2 / 1000*B9*D18, if x in B5 then E2 / 1000*B9*B18, in no x then error because user MUST select.

    so the 1 result must take all 3 into account...


    make sense?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: creating rule to adjust fields..

    =IF(COUNTIF(C5:E5, "x") > 0, E2 * B9 * C18 / 1000, "Error")
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    03-01-2009
    Location
    Denmark
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: creating rule to adjust fields..

    Hi shg.

    thanks.

    on adding it to the sheet I get an error, also the C5:e5 should be B5:d5

    also the formula you suggest doesn't change the last part:

    IF x in C5 then E2 / 1000*B9*C18, if x in D5 then E2 / 1000*B9*D18, if x in B5 then E2 / 1000*B9*B18, in no x then error because user MUST select.

    I'm sorry I cannot suggest something myself.. but as I wrote.. I have no idea..
    I can see the logic in what you're suggesting, but not what's missing.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: creating rule to adjust fields..

    Maybe =IF(COUNTIF(B5:D5, "x") <> 1, "Error", SUMPRODUCT( (B5:D5="x") * B18:D18) * E2 * B9 / 1000 )

    It's way easier to help if you post workbooks rather than pictures.

+ 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