Get % based on last number in column

JTL9161

Well-known Member
Joined
Aug 29, 2012
Messages
593
Office Version
  1. 365
Platform
  1. Windows
I am trying to get an percentage for column A1:A100 using the last number in column B6: B50. A new number is added to column B each week.

So I sum column A (for example: 692) and then need to take the last number in the range in column B (for example 15) multiply by 150 then take the 692 and divide by 2250 to equal 31%. The 150 is an constant number to multiply by.


Thank you,
James
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hello! Can you provide a fragment of your data? Where, for example, there is a cell with a number of 150, etc.
 
Upvote 0
the actual 150 can be put directly into the formula or just put any cell (C1 for example)
 
Upvote 0
How about
Excel Formula:
=SUM(A1:A100)/(LOOKUP(10^9,B1:B50)*150)
 
Upvote 0
Hello,

I think the formula below answers the question.

Excel Formula:
=LET(colB;B1:B100;
lastVal;INDEX(colB;XMATCH(TRUE;ISBLANK(colB);0;1)-1);
SUM(A1:A100)/lastVal*150)

Replace the “;” with “,” if needed.
 
Last edited:
Upvote 0
Glad we could help & thanks for the feedback.

@saboh12617 I would suggest that you test your formula before posting it.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top