Question on Hlookup

Goddard

New Member
Joined
Jun 6, 2019
Messages
2
What is the meaning for below formula ?
What is the function for this ROW(A5)-3?

=IF(HLOOKUP("E0016 Fully Approved",$A$4:$M$50,ROW(A5)-3,FALSE)=HLOOKUP("Grand Total",$A$4:$M$50,ROW(A5)-3,FALSE),100%,(HLOOKUP("E0016 Fully Approved",$A$4:$M$50,ROW(A5)-3,FALSE)/HLOOKUP("Grand Total",$A$4:$M$50,ROW(A5)-3,FALSE)))

I only can understand the Hlookup is horizontal look up
Below is the raw data. The whole formula is being used in column name % complete

Really need some help here. Thank you .
Count of AgrRequestStatus
LookupSOrg.ActPLTypE0001 DraftE0007 Rej. by CBME0012 Internally ApprovedE0013 Externally SubmittedE0014 Externally ApprovedE0015 Externally RejectedE0016 Fully ApprovedGrand Total% Complete
2340_AT2340AT410010496.2%
2340_DE2340DE25138352,9413,04096.7%
2377_SE2377SE1747598.7%
2377_NO2377NO7373100.0%
2377_IS2377IS55100.0%
2377_FI2377FI66100.0%
2377_DK2377DK279279100.0%
2647_AT2647AT11100.0%
2647_CH2647CH23118419096.8%
2786_BE2786BE452452100.0%
2619_RB2619RB141841999.8%
2376_NL2376NL239739999.5%
2799_ES2799ES405405100.0%
2799_IC2799IC2020100.0%
2795_PT2795PT6868100.0%
2789_IT2789IT11,0191,02099.9%
2334_FR2334FR1,7761,776100.0%
2622_SK2622SK187187100.0%
2615_CZ2615CZ430430100.0%
2616_PL2616PL814814100.0%
2677_CE2677CE568568100.0%
2626_HU2626HU1112812325348.6%
Grand Total_Grand Total321116914010,34010,58497.7%

<colgroup><col><col><col><col span="7"><col><col><col></colgroup><tbody>
</tbody>



<colgroup><col><col><col><col span="7"><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Welcome to the forum.

With all due respect to whoever wrote that formula, it's pretty awful. That whole formula can be replaced with:

=L5/M5

or a little fancier:

=IFERROR(L5/M5,"Completion percent not available")

All the HLOOKUP does is find the column with the right heading, then the ROW(A5)-3 term tells it to go down the same number of rows to the row the formula is in. That is, if the formula is in row 5, then ROW(A5)-3 = 2, and when you look at the second row down in the range $A$4:$M$50, you get row 5.

So HLOOKUP is used 4 times, to find a particular column, then the ROW(A5)-3 is used to find a particular row. But we already know the row and column we need!

Hope this helps! Let me know if you have further questions.
 
Upvote 0

Forum statistics

Threads
1,214,400
Messages
6,119,284
Members
448,885
Latest member
LokiSonic

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