+ Reply to Thread
Results 1 to 5 of 5

Forumal help, Indexing or If or ??

Hybrid View

apiske148 Forumal help, Indexing or If... 11-30-2011, 05:21 PM
tigeravatar Re: Forumal help, Indexing or... 11-30-2011, 05:58 PM
Special-K Re: Forumal help, Indexing or... 11-30-2011, 05:59 PM
tigeravatar Re: Forumal help, Indexing or... 11-30-2011, 06:06 PM
Special-K Re: Forumal help, Indexing or... 11-30-2011, 06:10 PM
  1. #1
    Registered User
    Join Date
    11-30-2011
    Location
    Virginia
    MS-Off Ver
    Excel 2003
    Posts
    4

    Forumal help, Indexing or If or ??

    I have a spreedsheet that has 3 columns, I have trying to have the last one filled in automatically. Column C will be a result of A and B together and output a number 1-25. So if A1=1 and B1=1 then C1=25 If A1=2 and B1=1 then C1=24 If A1=1 and B1=2 then C1=23 and so on until A1=5 and B1=5 then C1=1

    So I am dealing with potentially 25 If statements per column and not even sure that thats possible, would indexing arrays be an option if so how? there are 20-30 rows and this same forumal will be used on several sheets so if I can get it figured out it would be worth the time as it will be used often.

    Any and all help greatly appreciated!

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Forumal help, Indexing or If or ??

    apiske148,

    I don't understand your pattern. Can you post a sample workbook showing the pattern, or provide the logic behind the pattern?
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: Forumal help, Indexing or If or ??

    Try

    =25-(B1-1)*5-(A1-1)
    and copy down column C
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Forumal help, Indexing or If or ??

    Special-K,

    That formula doesn't quite fit. Here's a table of his examples:
    Col A    Col B    Col C
      1        1        25
      2        1        24
      1        2        23
      .        .        .
      .        .        .
      .        .        .
      5        5        1


    Using your formula with the third set of numbers, you get:
    =25-(2-1)*5-(1-1)
    =25-(1)*5-(0)
    =25-5
    =20

    which is an incorrect result...
    Last edited by tigeravatar; 11-30-2011 at 06:17 PM. Reason: Updated table showing OP's examples

  5. #5
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: Forumal help, Indexing or If or ??

    Good spot, I didnt notice that :-)

+ 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