+ Reply to Thread
Results 1 to 4 of 4

nesting IF functions

  1. #1
    Registered User
    Join Date
    08-19-2008
    Location
    Auckland, NZ
    MS-Off Ver
    2016
    Posts
    67

    nesting IF functions

    I am trying to write a formula that doubles the previous number every time an adjacent cell returns a certain value i.e. "tails" (as in heads v tails) - but only to a predetermined limit (see attachment). Once the predetermined limit is reached, the formula is to return to the start point "1". I am hoping someone can assist please.
    Attached Files Attached Files

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

    =IF(C4="heads",B$3,IF(B3>=8,2,B3*2))

    copied down...

    So if the previous cell contains an 8 or larger, then it will return a 2, otherwise it will multiply you previous cell by 2.


    Edit:

    I see now that B3 is your initial assigned value.

    My formula would need a slight edit: =IF(C4="heads",B$3,IF(B3>=8,B$3*2,B3*2))
    Last edited by NBVC; 08-19-2008 at 09:30 AM.
    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
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try this formula in A4 copied down

    =IF(OR(C4="heads",B3*2>8),B$3,B3*2)

  4. #4
    Registered User
    Join Date
    08-19-2008
    Location
    Auckland, NZ
    MS-Off Ver
    2016
    Posts
    67
    many thanks to both NBVC & daddylonglegs for thier responses to my thread. Both solved my problem thank you. As a first time user of this forum it is great to know that there is a wealth of info out there to assist new excel users like. Hopefully I can assist someone else in turn. cheers.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Nesting Lookup and If Functions
    By elric411 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-12-2007, 06:51 PM
  2. Nesting IF functions
    By Jean-Pierre in forum Excel General
    Replies: 7
    Last Post: 05-22-2007, 07:05 AM
  3. nesting functions within functions
    By 34laraider in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-30-2007, 08:46 PM
  4. nesting more than 7 functions
    By BW29 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-09-2007, 02:34 PM
  5. Nesting COUNTIF and IF functions
    By EagleJTR in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-27-2006, 03:58 PM

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