+ Reply to Thread
Results 1 to 18 of 18

Formula not collecting correct information

  1. #1
    Registered User
    Join Date
    06-21-2016
    Location
    Nowhere
    MS-Off Ver
    2010, 2016
    Posts
    79

    Formula not collecting correct information

    Hi All,

    I have a formula and it keeps returning the wrong info or nothing at all.

    I would appreciate if somebody could assist me to get the formula to return the info when an invoice number is selected like the name only (address line collects the right info) and also that the corresponding invoice number returns any info on the invoice main and invoice deatails in the description. I do have a formula but it keeps bringing up an error - see here

    =IFERROR(INDEX(invDetails,SMALL(IF(invDetails[Invoice '#]=rngInvoice,ROW(Invoice!)-ROW('Invoice Details'!)), ROW(1:1)), MATCH($C$8, invDetails[#Headers], 0)),"")

    I am not very good at formulas so i'm sure you'll find more errors

    Thanking you in advance.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Formula not collecting correct information

    Have not opened your file (yet), but did you enter that as an ARRAY formula using CTRL SHIFT ENTER?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    06-21-2016
    Location
    Nowhere
    MS-Off Ver
    2010, 2016
    Posts
    79

    Re: Formula not collecting correct information

    Hi,

    Thanks for responding, to be honest no i didn't just typed it in and when hitting enter it brings up the error.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Formula not collecting correct information

    That is an ARRAY formula ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

  5. #5
    Registered User
    Join Date
    06-21-2016
    Location
    Nowhere
    MS-Off Ver
    2010, 2016
    Posts
    79

    Re: Formula not collecting correct information

    Ive tried to do that but it still brings up an error, not sure if i'm doing it correctly

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Formula not collecting correct information

    OK let me take a look at your file

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Formula not collecting correct information

    Just noticed you are from SA? Waar omtrent? PE old boy here, from Klerksorp, now living in USA

    Where is this formula located?
    I see you have a lot of REF errors in your file?

  8. #8
    Registered User
    Join Date
    06-21-2016
    Location
    Nowhere
    MS-Off Ver
    2010, 2016
    Posts
    79

    Re: Formula not collecting correct information

    "Awe ma se kinders" wat maak jy daar? Awesome, yeah i'm from Dbn so yeah, nice to meet a fellow country man.

    Yeah that whole file is a mess lol, took it over from somebody and now i'm tyring to get it to work by adding formulas but ja nee :P

    basically what it needs to do is the invoice main and invoice details will have info and then all corrosponding info needs to be transferred to the invoice when the invoice number is selected.

  9. #9
    Registered User
    Join Date
    06-21-2016
    Location
    Nowhere
    MS-Off Ver
    2010, 2016
    Posts
    79

    Re: Formula not collecting correct information

    the ref error is because i deleted the worksheets that had personal info on but they don't have anything to do with the invoice

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Formula not collecting correct information

    moved here to marry a woman I met on the net - 15 years ago now Sister lives in Durbs, too.

    Its kinda later here now (3:30 am) and i can hear my bed calling.

    I will take another look later, and see what I can come up with for you?

    In the mean time, can you walk me through what you are trying to do?

  11. #11
    Registered User
    Join Date
    06-21-2016
    Location
    Nowhere
    MS-Off Ver
    2010, 2016
    Posts
    79

    Re: Formula not collecting correct information

    Oh wow, nice. Maybe i should try that :P

    Sure no porblem thanks any way. Lekker Dux

    basically what it needs to do is the invoice main and invoice details will have info and then all corresponding info needs to be transferred to the invoice when the invoice number is selected.

    Dankie, gaan slaap nou.

  12. #12
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,523

    Re: Formula not collecting correct information

    Can you file an invoice as it is not clear what you require in the invoice detail. Yoy have one description but multiple charges/fees..

    The "Owner ID":

    =VLOOKUP(rngInvoice,'Invoices - Main'!$B$8:$K$13,4,0)

    but you have a formula which obtains this from another source.

  13. #13
    Registered User
    Join Date
    06-21-2016
    Location
    Nowhere
    MS-Off Ver
    2010, 2016
    Posts
    79

    Re: Formula not collecting correct information

    Hi John

    Thanks for the reply.

    Ah, so I had the table as a reference, not the worksheet, see this is where I get confused when to use the worksheet or the table. Okay, so that worked.

    The other issue is that when I select the invoice number is should transfer all the information at corresponds with that invoice number to the invoice under the description, amount and however many rows that invoice number has. So bascially when you select the invoice number it will show all relevant info, you wont need to input anything besides the total which will be done when valuse are there.

    And the same will be for the Statement
    Last edited by Ms2BSwagg; 01-10-2018 at 07:31 AM. Reason: Forgot to add something

  14. #14
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,523

    Re: Formula not collecting correct information

    What goes in "Amount" for description "Invoice KC01-0001 Data 1": "levy Charges", "Parking "Charges" or "CSOS" ?? Or is "TotaL" in Invoice Details.

    Please as requested fill in dummy invoice with several lines and post a file.

  15. #15
    Registered User
    Join Date
    06-21-2016
    Location
    Nowhere
    MS-Off Ver
    2010, 2016
    Posts
    79

    Re: Formula not collecting correct information

    Herewith updated file, I've changed a few things don't worry about ref errors I deleted sheets with info on, but they don't affect what I'm trying to achieve.

    Thanks in advance for any help.

    Attached Files Attached Files

  16. #16
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,523

    Re: Formula not collecting correct information

    Now confused more: why have you a drop-down list id "Description"?

    I assume we require all records for"Owner ID" in G11.

    And it (drop down) uses function not available in 2010: are you using a later version of Excel;? If so, please update your profile.

    As I don't have a version other than 2010, I'll leave this to others.

    And judging by the comments in your file, you may need VBA.
    Last edited by JohnTopley; 01-10-2018 at 02:53 PM.

  17. #17
    Registered User
    Join Date
    06-21-2016
    Location
    Nowhere
    MS-Off Ver
    2010, 2016
    Posts
    79

    Re: Formula not collecting correct information

    That's why I wasn't sure how to get to show the information in the description, did it that way just to show how I need it to look if you confused then I'm lost:

    yes, we need anything that has the Owner id or invoice number needs to correspond.

    yeah I use 2016 I have saved it to the earlier version but I'm guessing most if not all the formulas have gone:

    Hope somebody can help with the VBA

    thank you for helping out tho much appreciated
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    06-21-2016
    Location
    Nowhere
    MS-Off Ver
    2010, 2016
    Posts
    79

    Re: Formula not collecting correct information

    @JohnTopley just saw you helped me out a few years back

+ 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. [SOLVED] Formula to copy information to the correct date?
    By JackMWhit in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-20-2017, 07:35 AM
  2. collecting information from a table without blanks
    By ilan buskila in forum Excel General
    Replies: 7
    Last Post: 01-22-2015, 08:48 AM
  3. Collecting information from sheet
    By Kevin62 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-23-2014, 02:52 PM
  4. [SOLVED] Formula to pull specific information from a list in the correct order
    By Sleepyshy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-05-2012, 11:36 AM
  5. Excel 2007 : Collecting Information
    By SoulRebel in forum Excel General
    Replies: 7
    Last Post: 02-28-2012, 10:59 AM
  6. Collecting Information with Excel
    By injest in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-03-2011, 08:00 PM
  7. Collecting information from a template used daily
    By RSGREINER in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-11-2010, 11: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