+ Reply to Thread
Results 1 to 3 of 3

IF (#Account No.) is between, cell A1 to cell B1, "Revenue", ...

  1. #1
    Registered User
    Join Date
    06-27-2011
    Location
    Argentina
    MS-Off Ver
    Excel 2007
    Posts
    12

    IF (#Account No.) is between, cell A1 to cell B1, "Revenue", ...

    Hi Guys, I'm trying to simplify a mapping table to use later as a vlookup.

    The problem here is that I ranges defined by two different cells, as shown below:

    A1 (from): 300001
    B1 (to): 300999

    Account type: "Revenues"

    A2 (from): 301000
    B2 (to): 302999

    Account type: "Costs"

    etc.

    Do you have any idea how to solve this, because I cannot create a line for each account, it would be huge...

    Cheers

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: IF (#Account No.) is between, cell A1 to cell B1, "Revenue", ...

    Is the Account type in C or what?

    If so, you don't 100% need the B:B values, just use the trusty INDEX(MATCH):

    =INDEX(C:C, MATCH(input_num, A:A, 1) )

  3. #3
    Registered User
    Join Date
    06-27-2011
    Location
    Argentina
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: IF (#Account No.) is between, cell A1 to cell B1, "Revenue", ...

    Thanks dude, I didn't know that I can use a range instead of a unique number in onw of the variables of MATCH. Works great.

+ 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