NEED HELP I HAD IT FIGURED OUT BUT LOST THE FORMULA

nathantmoore89

New Member
Joined
Aug 26, 2021
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
APRODUCT TITLE4,308287.2DAYCODEDAY 1318
DAYCODEDAY22772
DAYCODEDAY3854
DAYCODEDAY4364
TOTAL COMPLETED0
AS YOU CAN SOMEWHAT SEE, I HAVE THE PRODUCT LETTER A IN THE TOP LEFT AND THE TOTAL COMPLETED NUMBER BOTTOM RIGHT I BELIEVE ON MY SHEET THE TWO CELLS ARE A6 FOR THE PRODUCT LETTER A AND THE TOTAL IS THE 0 IN CELL I10 I have a whole sheet organized like this for about 40 different products, i need to search for a and return the total completed i have had success with IF INDEX MATCH FUNCTIONS BUT I LOST HOW TO DO IT PLEASE HELP.
 

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.
Something like this should do it. You will need to replace "product letter" in the formula with the actual product letter, or a reference to a cell containing the product letter to look for.
Excel Formula:
=VLOOKUP("TOTAL COMPLETED",INDEX(H:H,MATCH("product letter",A:A,0)):INDEX(I:I,MATCH(1e+100,I:I)),2,0)
 
Upvote 0
2 other ideas that you can consider
a) formula =AND(A6="",H6="")*(SUM($H$6:H6)-SUM($I$5:I5))
N.B. A zero will show unless you nest the formula with an if function or
in File Options uncheck Show a zero in cells that have a zero value.

b) Fill the Code in Column A and Use Data | Subtotal
If you import this data, amend the export to show the code for each row.
You can fill the code via formula or VBA; a full description of how to do this is on this forum.
Highlight the range of data including the Headings
Subtotal will default to Each change in Code add total to Col H edit if required
Subtotal 1 will show just the Grand Total
Subtotal 2 will show total by Code shown below
Subtotal 3 will show the detail and the totals

T202108b.xlsm
ABCDEFGHI
1Show Total
2
3
4
5CodeProductCol CCol DCol ECol FCol GCol HTotal
6APRODUCT TITLE4,308287.2DAYCODEDAY 1318 
7DAYCODEDAY22772 
8DAYCODEDAY3854 
9DAYCODEDAY4364 
104308
11BPRODUCT TITLE810DAYCODEDAY 1318 
12318
4b
Cell Formulas
RangeFormula
I6:I12I6=AND(A6="",H6="")*(SUM($H$6:H6)-SUM($I$5:I5))


With Subtotal N.B. I did not enter the formulas shown; I just selected the range and used Data | Subtotals
T202108b.xlsm
ABCDEFGH
5CodeProductCol CCol DCol ECol FCol GCol H
10A Total4308
12B Total318
13Grand Total4626
14
4bb
Cell Formulas
RangeFormula
H10H10=SUBTOTAL(9,H6:H9)
H12H12=SUBTOTAL(9,H11:H11)
H13H13=SUBTOTAL(9,H6:H11)
 
Upvote 0
=VLOOKUP("TOTAL COMPLETED",INDEX(H:H,MATCH("product letter",A:A,0)):INDEX(I:I,MATCH(1e+100,I:I)),2,0)
If I may ask what is the purpose of the match(1e+100,I:I)) can you explain this a bit so I can learn how to write this in future sheets?
 
Upvote 0
1e+100 is just a really big number written in scientific notation, (if you want to see how big, type it into excel then format that cell as number instead if general / scientific) it is used with approximate match to find the last row in column I that contains a number. The number used needs to be greater than the maximum value that could be found in the match range, large numbers in scientific format are often used as a failsafe method. In reality a much smaller number is often adequate.
 
Upvote 0

Forum statistics

Threads
1,214,881
Messages
6,122,074
Members
449,064
Latest member
MattDRT

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