+ Reply to Thread
Results 1 to 16 of 16

Deadline countdown

  1. #1
    Registered User
    Join Date
    04-18-2019
    Location
    Borås, Sweden
    MS-Off Ver
    365
    Posts
    13

    Deadline countdown

    Hello,
    I have below code which takes the the prices from the pristlist 1 and now i want to give the user an alternative to choose between pricelists, how do i do that? can i manage it with an "if function"?





    The function in use now: =IF(C8=TRUE; D8*PLIST1!B2;0). the additional funktion i want shold come before my function i guess due to order of the job in general.

    A have made several checklists for the diffrent priselists (sheets) which can be checked and when checked it will give me a "TRUE" or "FALSE" text.


    Thanks in advance!

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: Deadline countdown

    If I understand correctly this could be accomplished by using a drop down with the source being the names of the sheets, lets say in cell A1. The formula could then be modified to read: =IF(C8=TRUE; D8*INDIRECT(A1&"!B2");0)
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    04-18-2019
    Location
    Borås, Sweden
    MS-Off Ver
    365
    Posts
    13

    Re: Deadline countdown

    Hello!

    The template i want to accomplish is that the user can make 2 choices.
    The first choice is type of store =pricelist from the dropdown list or a checkbox next to the name of the store (not so important which).
    And the second choice would be the type of things/posts user choses to include in the calculation, for example (tomato, eggs, sallad, juice).



    Iam thinking: =IF(C8=TRUE; D8*IF(C2=TRUE;PLIST1!B2;0;IF(C3=TRUE;PLIST2!B2;0;IF(C4=TRUE;PLIST3!B2;0;IF(C5=TRUE;PLIST4!B2;0))))

    C8 = tomato (if that is checked it Would be included)
    D8 = amount (kg)

    C2 =store 1 (plist1)
    C3 =store 2 (plist2)
    C4 =store 3 (plist3)
    C5 =store 4 (plist4)

    Thanks in advance!

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: Deadline countdown

    I am confused as to how this implements on a spreadsheet.
    I believe that it would help if you could manually produce a spreadsheet that demonstrates what you are trying to accomplish. We may then be able to write formulas/code to automate the process.
    To upload a sample spreadsheet (not a picture or pasted copy) click on the GO ADVANCED button below the Quick Reply window and then scroll down to Manage Attachments to open the upload window.
    Let us know if you have any questions.

  5. #5
    Registered User
    Join Date
    04-18-2019
    Location
    Borås, Sweden
    MS-Off Ver
    365
    Posts
    13

    Re: Deadline countdown

    Hello,
    Here it comes ithink
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-18-2019
    Location
    Borås, Sweden
    MS-Off Ver
    365
    Posts
    13

    Re: Deadline countdown

    The functions are in Swedish hope that you understand.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: Deadline countdown

    In the attached copy of the file the following additions/changes have been made:
    1. D2:D5 are populated with the tab names that (I think) correspond to the stores in B2:B5
    2. F5:G5 are populated using: =INDEX($D2:$D5,MATCH(TRUE,$C2:$C5,0))
    Note that you could hide the values in D2:G5 by selecting the range and changing the font color to white.
    3. F8 and down are populated using: =IF($C8=TRUE, $D8*INDIRECT(F$5&"!B"&ROW(A2)),0)
    4. G8 and down are populated using: =IF($C8=TRUE, $D8*INDIRECT(G$5&"!C"&ROW(A2)),0)
    Note that this proposal assumes that only one store will be selected.
    Functions converted to English when I opened the file and should convert to Swedish when you open the copy attached to this post (also commas should convert to semi colons).
    Let us know if you have any questions.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    04-18-2019
    Location
    Borås, Sweden
    MS-Off Ver
    365
    Posts
    13

    Re: Deadline countdown

    Hello there,
    Sorry for late reply. but that was just what i was looking for. Thanks alot!
    what if i want to go further with it and select 2 or 3 pricelist and get an
    average depending on the pricelist choosen?

    Thanks in advance!

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: Deadline countdown

    It may be possible to do what you want using Power Pivot, however that would mean a significant change to the appearance of the Budget sheet.
    I wanted to check and see if that is acceptable before investing the time into attempting.
    Let us know if you have any questions.

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: Deadline countdown

    I played with the file a bit to see what Power Pivot might be able to do.
    If it is useful, we can pursue it further and if not, that is fine too.
    Let us know if you have any questions.
    Attached Files Attached Files

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

    Re: Deadline countdown

    Administrative note

    Seems that no VBA solution is required - Moved to Formula forum

  12. #12
    Registered User
    Join Date
    04-18-2019
    Location
    Borås, Sweden
    MS-Off Ver
    365
    Posts
    13

    Re: Deadline countdown

    Hello,
    Thanks for the help!
    I really dont want to lose the appearance, i thought i could solve it by an "if function" or some VBA?
    is it not possible at all?

    The idea is if i check (store 1 and store 2) i get an avrage of "min-price and the max-price" of store 1 and store 2 of everyting i choose to include in my shopping basket. se attached pdf for a example.

    Thanks in advance!
    Example template.pdf
    Kind regards// ALN
    Attached Files Attached Files
    Last edited by ALN_82; 03-17-2020 at 10:14 AM.

  13. #13
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: Deadline countdown

    Perhaps this will help:
    1. Add a column to the tables on each of the PLIST sheets populated using: =AND(BUDGET!C$2,BUDGET!C8)
    2. Get sheet Min. and Max. averages in cells F2:G2
    2a. For F2: =IFERROR(AVERAGEIFS(PList1Table[MIN PRICE],PList1Table[Chosen],TRUE),0)
    2b. For G2: =IFERROR(AVERAGEIFS(PList1Table[MAX PRICE],PList1Table[Chosen],TRUE),0)
    3. On the sheet the individual PLIST Min and Max averages are populated using: =IF(INDIRECT(D2&"!F2")=0,"",INDIRECT(D2&"!F2")) and =IF(INDIRECT(D2&"!G2")=0,"",INDIRECT(D2&"!G2"))
    4. The overall Min and Max averages are populated using: =AVERAGE(F2:F5)
    Let us know if you have any questions.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    04-18-2019
    Location
    Borås, Sweden
    MS-Off Ver
    365
    Posts
    13

    Re: Deadline countdown

    Hello JeteMc,
    Thank you for the reply, is it possible to get an avrage seperatly for each posts to sum it up below (se pdf).Attachment 667997
    Or even in Min and max field insted of the actual cost?
    Last edited by ALN_82; 03-19-2020 at 04:07 AM.

  15. #15
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: Deadline countdown

    Selecting Attachment 667997 (post #14) results in the following message: "Invalid Attachment specified. If you followed a valid link, please notify the administrator"
    It would be better to attach an .xlsx file anyway, as it is not possible to test formulas/code in a .pdf
    Please manually include the output that you would like to have automated by formulas/code so that we will know what the formulas/code should yield.
    Let us know if you have any questions.

  16. #16
    Registered User
    Join Date
    04-18-2019
    Location
    Borås, Sweden
    MS-Off Ver
    365
    Posts
    13

    Re: Deadline countdown

    Hi,
    Thanks a lot. I will give it a try and get back to you on how it went.

+ 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] Countdown alerts until deadline
    By APEIND in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-21-2019, 04:10 AM
  2. Help please for deadline.. forumlas!
    By jodieduncan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-25-2013, 02:02 PM
  3. [SOLVED] Deadline Formula
    By RobPreston1993 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-11-2013, 08:00 AM
  4. Help with deadline database
    By Wren Musick in forum Excel General
    Replies: 3
    Last Post: 01-03-2012, 04:17 PM
  5. Deadline Formulae
    By jammy1812 in forum Excel General
    Replies: 9
    Last Post: 07-13-2011, 10:33 AM
  6. Deadline Notice
    By roy.okinawa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-27-2006, 06:40 PM
  7. [SOLVED] Active Deadline
    By Willamina in forum Excel General
    Replies: 5
    Last Post: 04-09-2005, 03:08 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