+ Reply to Thread
Results 1 to 7 of 7

Working with IF cmd

  1. #1
    Registered User
    Join Date
    07-04-2008
    Location
    Iceland
    Posts
    8

    Working with IF cmd

    Hello.

    I'm working on a pricebank for a little company and I need a little help.

    Here is a img to explain it. (Some words are in Icelandic, but is dose not matter )

    [img=http://img504.imageshack.us/img504/3541/verdbankzj1.th.jpg]

    Ok so you can see that there are 4 dialogs that contain prices, (Mel, Harð, Spón and Spraut) and on the far right side I have a box with the same names but only with A,B,C and X.

    So my question is, if I put X in R8, then in O8 "=H8*M8" and if I put X in R10, then O8 "=J8*M8" and so on, so I only need to change the X sign from R8-R11 to change to hole price list.

    How can I do this with IF, or is there any other more simple way to use this.

    Thx
    Regards Abattage.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    The image doesn't show where R8, R10, etc are....

    It's better if you attach an actual excel sheet to your thread...

    Then show example of expected results.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    07-04-2008
    Location
    Iceland
    Posts
    8

    ohh I see

    Sorry for that, here is the excel file.
    Attached Files Attached Files

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Hi,

    It's difficult to be certain of your exact process from the description given, however from my interpretation I'm guessing that the following formula in O8 will give the result you're after, with an x somewhere on R8:R11

    =OFFSET(G8,0,MATCH("x",R8:R11))*M8

    HTH

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try, In O8:

    Please Login or Register  to view this content.
    copied down.

    Edit: Eliminated redundancy in column match part of the Index() function....
    Last edited by NBVC; 07-04-2008 at 03:08 PM.

  6. #6
    Registered User
    Join Date
    07-04-2008
    Location
    Iceland
    Posts
    8

    Thanks

    This works, just put ; in for ,
    =OFFSET(G8,0,MATCH("x",R8:R11))*M8
    Worked after I put ; in but I will also try your out NBVC, might work better cus of $$

    Thx for all the help guys
    Last edited by Abattage; 07-04-2008 at 03:13 PM.

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by Abattage
    This works, just put ; in for , Worked after I put ; in but I will also try your out NBVC, might work better cus of $$

    Thx for all the help guys
    I also added an error trap in my formula so that if you don't have any x's in R8:R11, you won't get a bunch of #N/A errors...

+ 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