+ Reply to Thread
Results 1 to 8 of 8

Calculating formula between two numbers

  1. #1
    Registered User
    Join Date
    06-25-2014
    Location
    Helsinki
    MS-Off Ver
    2014
    Posts
    4

    Arrow Calculating formula between two numbers

    Hey guys,

    i have got a formula in C1. Now, i want to calculate the formula between two numbers (minimum A1 and (maximum B1.
    I can pull the formula to the right manually, but i always need to pull the formula till i hit the maximum number from B1.
    And..the longer the differences between the numbers the longer is the column (f.ex.: from C1 to XYZ1).

    It is very annoying to pull the formula with my hand. For this reason, i want to ask you, whether there is any possibilty to calculate the formula automatically. it should start calculating with the number from A1 and stop with B1.

    Sorry for my english, im still practising ;-)

    best regards

    Lisa

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Calculating formula between two numbers

    Is it incremental (i.e if A1 is 5 and B1 is 25, in C1,D1,E1... 5,6,7?

    You could have this formula in your sheet
    In C1 = A1
    In D1 copied to the right
    =IF(OR(C1="", C1=$B1),"", C1+1)

    Does that work for you?
    Your English is fine.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

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

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Calculating formula between two numbers

    What is the formula?

  4. #4
    Registered User
    Join Date
    06-25-2014
    Location
    Helsinki
    MS-Off Ver
    2014
    Posts
    4

    Re: Calculating formula between two numbers

    Hi ChemistB,

    your formula is working so far. Thanks!
    First problem solved

    But my second point is copyingpart to the right.
    As you already said correctly, it is incremental in 0,01 steps. So i maybe got some hundred of columns from C1 to XYZ999...
    Furthermore i got quite a few data sets A1 to B1, A2 to B2 and so on.. which all have a different columnlength and i need to do the same procedure here.
    But i don't want to copy the formula to the right one thousand times ;-)

    Is there any possibilty to get a macro in vba or another excel formula, which only calculates the columns between the numbers in A1 to B1 and after reaching the last number from B1 stopping calculate?

    Hope, you got it.

  5. #5
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Calculating formula between two numbers

    You can use VBA code along with the resize function to essentially do this.

    i.e.

    Please Login or Register  to view this content.
    Will reference 100 columns from A1.

    So if you 5 in A1 and 125 in B1 then you could do something like
    Please Login or Register  to view this content.
    which would put 5 to 125 from C1 to DS1 and then =5*C1, =5*D1 etc formula in C2:DS2

  6. #6
    Registered User
    Join Date
    06-25-2014
    Location
    Helsinki
    MS-Off Ver
    2014
    Posts
    4

    Re: Calculating formula between two numbers

    This is perfect, thank you both!

  7. #7
    Registered User
    Join Date
    06-25-2014
    Location
    Helsinki
    MS-Off Ver
    2014
    Posts
    4

    Lightbulb Re: Calculating formula between two numbers

    Final question. What do i need to change when i have got 0.01 steps (i.e. 0,01 0,02 ..0,99 1) and not 1 steps (1 2 3..)?

  8. #8
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Calculating formula between two numbers

    Please Login or Register  to view this content.

+ 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. ELO calculating formula + how to get the biggest n numbers in a row
    By sjuesju in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-18-2014, 03:05 PM
  2. How to force a formula to round numbers while calculating.
    By sabotage628 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-07-2013, 07:49 PM
  3. Calculating Certain Numbers
    By mattpritch in forum Excel General
    Replies: 7
    Last Post: 10-16-2009, 02:25 PM
  4. Array Formula - Calculating Staff Numbers
    By Saxifrage in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-25-2007, 02:01 AM
  5. [SOLVED] calculating the difference between 2 numbers
    By Darran in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM

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