+ Reply to Thread
Results 1 to 5 of 5

A formula to understand range and apply criteria

  1. #1
    Registered User
    Join Date
    08-24-2009
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    9

    Exclamation A formula to understand range and apply criteria

    I have a question and I really dont know how to solve it.I am looking at ranges and applying different criteria to degrees.

    I am looking at angles within a 360 degree circle.
    For those angles that fall say, between:
    360-351 - Apply a factor of 1.9
    350-341 - Apply a factor of 1.78
    340-321 - Apply a factor of 1.6

    etc.

    Now, I am given a band that spreads across multiple factors. Say the band is 355-348.
    For this example,
    355, 354, 353, 352, 351 all need to be multiplied by 1.9.
    350, 349 and 348 need to be multiplied by 1.78.

    So the results should look like I have (5x1.9) + (4x1.78).

    I can create a lookup table that has every angle and the appropriate factor but how do I automate this?? I know, left field but I spend so much manual effort and would love to automate it. I think if statements and lookups might work but any suggestions on this would be great

  2. #2
    Registered User
    Join Date
    10-10-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003, 2007 & 2010
    Posts
    88

    Re: A formula to understand range and apply criteria

    have a look at the attached and let me know if it helps.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: A formula to understand range and apply criteria

    Hi,

    an example: write a table in A1:B3

    A1=321 A2=341 A3=351
    B1=1.6 B2=1.78 B3=1.9

    to get the factor

    =VLOOKUP(your number,$A$1:$B$3,2,1)

    Hope it helps

  4. #4
    Registered User
    Join Date
    08-24-2009
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: A formula to understand range and apply criteria

    Hey thanks so much for the quick response. Sofistikat, how did you work that out. That does exactly what I want it to do. Thanks everyone!

  5. #5
    Registered User
    Join Date
    10-10-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003, 2007 & 2010
    Posts
    88

    Re: A formula to understand range and apply criteria

    You're just very good at explaining things ;-)

    Would you mind marking this thread solved please?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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