+ Reply to Thread
Results 1 to 3 of 3

Excel // compare multiple columns and give a message

  1. #1
    Registered User
    Join Date
    01-22-2016
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    11

    Excel // compare multiple columns and give a message

    Dear All,

    i need your help, in order to find the best solution for my case.

    I have the tabel attached, in olumn
    A is the code
    B Qty Scanned
    C Qty On Hand
    Variance 1st location
    Variance 2nd Location
    Variance 3rd location
    Variance 4th location
    and so on
    In column H i have the variance
    In column I i would like to have a comment

    So for example in the row 4 i scanned 18 and i have 18 products on hands, so variance 0, but i counted -1 in location 28803 and +1 in location 28817
    i would like to have a message in the cell I4 like: "Move the product from 28817 or location2 to the location1 or 28803"
    the same for the row 5, the message must be move 2 products from 28803 to 28817
    so where the qty is positive, and i found the same quantity negative overall 0 on the same row, the message must tell me to move the product from the positive location to the negative location...
    in the row 17 i have
    -3 on location 28803
    +4 on location 28817
    -1 on location 28818
    so the total is 0 an di would like to have a message saying:
    "i must move 3 qty from 28817 to 2883 and 1 qty from 28817 to 28818"

    just to clarify on row 11 no action are required, just to confirm the qty extra counted in the 4th location 28819

    i gave the name to the location, but are just variable can be also A B C D etc...

    hope is clear
    how can i do it?

    thank you so much
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by ByLM; 06-15-2021 at 11:31 AM. Reason: uploading file excel

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Excel // compare multiple columns and give a message

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file.

  3. #3
    Registered User
    Join Date
    01-22-2016
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    11

    Re: Excel // compare multiple columns and give a message

    Hello, i have uploaded the file excel, a sample of the file, could you let me know if is fine now, sorry for the trouble

+ 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. 2 Columns - Compare columns and give a percentage of number of matches
    By Dave1969 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-24-2020, 06:55 AM
  2. [SOLVED] Compare Sum of 2 Columns and Give Message Box
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-08-2019, 03:13 PM
  3. Compare 2 columns and give % difference
    By grafx77 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-24-2018, 05:38 AM
  4. Compare multiple columns for match then give MIN
    By em1335 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-01-2016, 03:43 PM
  5. please help with compare two columns and give me result?
    By tomislav91 in forum Excel General
    Replies: 3
    Last Post: 01-24-2015, 02:48 PM
  6. Replies: 0
    Last Post: 10-21-2014, 06:52 AM
  7. Compare 2 columns then give count
    By George4 in forum Excel General
    Replies: 27
    Last Post: 10-02-2008, 11:43 PM

Tags for this Thread

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