+ Reply to Thread
Results 1 to 2 of 2

if/else statements help needed

  1. #1
    Registered User
    Join Date
    10-18-2011
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    25

    if/else statements help needed

    Hi I am trying to complete a formula whereby I have four columns, of these four the first 3 will only ever had 1 completed so lets say its column a,b or c there will only ever be a 1 in one of these columns I then need to determine if there is a 1 in column d,

    so basically the formula would in basic terms be something like this:

    if d1=1 and a1 = 1 then 650, if d1 and b1 then 700, if d1 and c1 then 350

    I would need this to be for all cells in the columns and totals at the bottom?

    Hope I have explained this correctly
    Last edited by turnej; 10-18-2011 at 05:13 PM.

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

    Re: if/else statements help needed

    Try:

    =IF(D1=1,INDEX({650,700,350},MATCH(1,A1:C1,0)),"")
    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.

+ 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