Formulas and Functions Help

%3CLINGO-SUB%20id%3D%22lingo-sub-1938813%22%20slang%3D%22en-US%22%3EFormulas%20and%20Functions%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1938813%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENot%20sure%20whether%20anyone%20will%20be%20able%20to%20help%20me%20but%20I%20am%20not%20that%20confident%20with%20Excel%20but%20did%20do%20work%20on%20it%20for%202%20years%20previously%20so%20have%20some%20knowledge.%20However%2C%20I%20am%20helping%20out%20a%20friend%20with%20their%20spreadsheet%20as%20they%20have%20just%20collected%20some%20data.%20I%20have%20two%20columns%20which%20I'd%20like%20to%20divide%20one%20by%20the%20other%2C%20although%20they%20are%20values%20which%20are%20ranges%2C%20for%20example%2C%20a%20range%20of%205%2C000-10%2C000%20to%20be%20divided%20by%20another%20range%20of%2040-50.%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20that%20I%20can%20divide%20one%20by%20the%20other%20to%20produce%20another%20range%20value%20as%20I%20am%20aware%20that%20by%20doing%205%2C000-10%2C00%20%2F%2040-50%20will%20not%20give%20you%20one%20answer%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20someone%20can%20help%20me%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%20Thank%20you%20very%20much%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1938813%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1938848%22%20slang%3D%22en-US%22%3ERe%3A%20Formulas%20and%20Functions%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1938848%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F884883%22%20target%3D%22_blank%22%3E%40aimeec%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20is%20the%20expected%20finding%20from%20the%20calculation%3F%20With%20excel%2C%20you%20can%20not%20divide%20ranges%20together.%20Rather%2C%20a%20figure%20needs%20to%20be%20used%2C%20in%20the%20example%20below%2C%20I%20used%20the%20average%20of%20the%20ranges%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22adversi_0-1606671176538.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F236504i68761C31FA481F47%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22adversi_0-1606671176538.png%22%20alt%3D%22adversi_0-1606671176538.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1938868%22%20slang%3D%22en-US%22%3ERe%3A%20Formulas%20and%20Functions%20Help%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1938868%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F884883%22%20target%3D%22_blank%22%3E%40aimeec%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20need%20to%20add%20helper%20columns%20to%20facilitate%20your%20work%2C%3CBR%20%2F%3EOne%20column%20to%20have%20the%20average%20for%20Range1%20and%20another%20one%20for%20the%20average%20for%20Range2%2C%20then%20you%20can%20Divide%20the%20average%20for%20range1%20by%20the%20average%20for%20range2%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi,

 

Not sure whether anyone will be able to help me but I am not that confident with Excel but did do work on it for 2 years previously so have some knowledge. However, I am helping out a friend with their spreadsheet as they have just collected some data. I have two columns which I'd like to divide one by the other, although they are values which are ranges, for example, a range of 5,000-10,000 to be divided by another range of 40-50.

Is there a way that I can divide one by the other to produce another range value as I am aware that by doing 5,000-10,00 / 40-50 will not give you one answer?

 

Hope someone can help me Thank you very much

3 Replies

@aimeec 

What is the expected finding from the calculation? With excel, you can not divide ranges together. Rather, a figure needs to be used, in the example below, I used the average of the ranges

adversi_0-1606671176538.png

 

Hi @aimeec 

 

You need to add helper columns to facilitate your work,
One column to have the average for Range1 and another one for the average for Range2, then you can Divide the average for range1 by the average for range2

@aimeec   The more specific you are, the more likely you are to get a quick resolution.  Ideally, attached an Excel file that shows representative data, and explain how you would do the calculation manually.  In particular, what does it mean to "divide one column by another"?  Do you mean row-by-row?  And do you mean that each cell has the literally string "5,000-10,000" and "40-50", for example?

 

Assuming the latter and row-by-row division, the best we can do with that information is to divide the midpoint (average) of each range by the other.  Algebraically, that is the same as dividing the sum of each range endpoints by the other.  For example:

 

A2: 5,000-10,000

B2: 40-50

C2: =(LEFT(A2,FIND("-",A2)-1) + MID(A2,FIND("-",A2)+1,99))
/ (LEFT(B2,FIND("-",B2)-1) + MID(B2,FIND("-",B2)+1,99))

 

For that example, C2 is 166.666666666667.

 

However, that might not be correct mathematically for the actual data in each range.  For example, if the range 5,000-10,000 is comprised of 99 items at 10,000 and 1 item at 5,000, the average is 9950 = (99*10000 + 5000)/100, not 7500 = (5000+10000)/2.

 

So, if you have the original data that comprise each range, the better solution is =SUM(X1:X100) / SUM(Y1:Y100), where X1:X100 are the actual data between 5000 and 10000, and Y1:Y100 are the actual data between 40 and 50.