+ Reply to Thread
Results 1 to 16 of 16

How to get the corresponding name of executive from range of receipts issued

  1. #1
    Registered User
    Join Date
    06-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    44

    How to get the corresponding name of executive from range of receipts issued

    Hi,

    I have a problem in which each executive is issued a receipt book which is serially numbered. So for eg. Executive A is issued receipt book from containing receipt no. from 1001 to 1100. Like wise Executive D is issued receipt book containing receipt no. from 1301 to 1400.

    So if we get receipt no. 1050 then in the corresponding column name of Executive A should appear as receipt no. 1050 is with A. Like wise if receipt no. is 1349 then name of Executive D should appear as receipt no. 1349 is between receipt no. 1301 to 1400 which was issued to Executive D.

    Like this we more than 60 Executives to whom hundreds of receipts are issued.

    I have attached a sample file.

    Kindly help me out on this.

    Thanks in Advance.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: How to get the corresponding name of executive from range of receipts issued

    In B17 copied down:

    =INDEX($C$3:$C$9,MATCH(A17,$A$3:$A$9,1))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    06-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: How to get the corresponding name of executive from range of receipts issued

    Wow Ali Thanks for replying so quickly.

    Your suggestion almost worked, but there is one problem. If i enter receipt no. greater than 1700, say for eg. 1851, which is actually not in my receipt range, then also the name of Executive G is appearing. In fact the formula should return error #N/A.

    If you can sort this out it would be very helpful.

    Thanks in advance.

    Quote Originally Posted by AliGW View Post
    In B17 copied down:

    =INDEX($C$3:$C$9,MATCH(A17,$A$3:$A$9,1))

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: How to get the corresponding name of executive from range of receipts issued

    Try this:

    =IF(A17>$B$9,"N/A",INDEX($C$3:$C$9,MATCH(A17,$A$3:$A$9,1)))

    or this:

    =IF(A17>MAX($B$3:$B$9),"N/A",INDEX($C$3:$C$9,MATCH(A17,$A$3:$A$9,1)))
    Last edited by AliGW; 08-09-2017 at 01:15 PM.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: How to get the corresponding name of executive from range of receipts issued

    tRY THIS INSTEAD:

    =IFERROR(INDEX($C$2:$C$9,MATCH(1,INDEX(($A$2:$A$9<=A17)*($B$2:$B$9>=A17),0),0)),"")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Registered User
    Join Date
    06-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: How to get the corresponding name of executive from range of receipts issued

    Thanks Ali.

    Both formula are working perfectly for me.

    I'll take some time to understand it, but still working fine.

    Thanks again.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: How to get the corresponding name of executive from range of receipts issued

    You're welcome!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  8. #8
    Registered User
    Join Date
    06-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: How to get the corresponding name of executive from range of receipts issued

    Thank your very much Glenn.

    I have tried formula also. The only thing is that it does not return Error if the receipt no. is not in your range. Other wise the formula is working perfectly fine.

    A bit complicated formula for me. I need some time to digest it.

    But anyways, Thank you very much Glenn.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: How to get the corresponding name of executive from range of receipts issued

    I know. Virtually no-one wants to see the error message. It's designed to leave blanks INSTEAD of errors.

    =INDEX($C$2:$C$9,MATCH(1,INDEX(($A$2:$A$9<=A17)*($B$2:$B$9>=A17),0),0))

    will leave the #N/A error in.

  10. #10
    Registered User
    Join Date
    06-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: How to get the corresponding name of executive from range of receipts issued

    Got it.

    Thanks for replying so quickly. It was like Real time reply.

    Thanks Glenn

  11. #11
    Registered User
    Join Date
    06-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: How to get the corresponding name of executive from range of receipts issued

    Hi,

    I have a further question to my query.

    If the receipt nos. are not in sequence, some receipt nos. are missing then how to get the correct result.

    I have attached a sample file in which you can see that the receipt nos. 1200 to 1300 are missing. Like wise receipt no. 1401 to 1449 are also missing.

    Thanks in Advance.
    Attached Files Attached Files

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: How to get the corresponding name of executive from range of receipts issued

    You need to add them to your lookup list but leave the manager list blank.

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: How to get the corresponding name of executive from range of receipts issued

    ...or use the formula that I already gave you.

    =INDEX($C$2:$C$9,MATCH(1,INDEX(($A$2:$A$9<=A12)*($B$2:$B$9>=A12),0),0))
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    06-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: How to get the corresponding name of executive from range of receipts issued

    Got it. Simple & easy.

    Thank you very much.

    Quote Originally Posted by AliGW View Post
    You need to add them to your lookup list but leave the manager list blank.

  15. #15
    Registered User
    Join Date
    06-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: How to get the corresponding name of executive from range of receipts issued

    Works perfectly fine.

    Thanks Glenn.

    Quote Originally Posted by Glenn Kennedy View Post
    ...or use the formula that I already gave you.

    =INDEX($C$2:$C$9,MATCH(1,INDEX(($A$2:$A$9<=A12)*($B$2:$B$9>=A12),0),0))

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: How to get the corresponding name of executive from range of receipts issued

    You're welcome!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 04-10-2017, 01:18 AM
  2. Building One-Click Macro Program to Organize Corporate Executive Information
    By alacey425 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2015, 08:56 PM
  3. [SOLVED] Receipts issued and record of payments
    By Marianne Rachmann in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-30-2012, 08:11 AM
  4. Excel Macro for creating Attendance rerort when executive login in the system
    By medhekaraniruddha in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-14-2012, 08:39 AM
  5. Calculating units issued
    By Gerry1206 in forum Excel General
    Replies: 1
    Last Post: 06-21-2008, 10:57 AM
  6. [SOLVED] Shifting Calculated Result - Re-Issued
    By sony654 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-15-2006, 06:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1