Get % based on last number in column

JTL9161

Well-known Member
Joined
Aug 29, 2012
Messages
591
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

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
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,223,886
Messages
6,175,198
Members
452,616
Latest member
intern444

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