+ Reply to Thread
Results 1 to 12 of 12

How to use "if" formula for change price

  1. #1
    Registered User
    Join Date
    11-24-2011
    Location
    KL, Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    15

    How to use "if" formula for change price

    Hi,

    I want a formula for change Price if the date Saturday and Sunday, if weekdays the value remain same. Only change few the price of few value.

    30 sheets with date n 10 cells with price
    i want a formula which change the price on Saturday and Sunday only.

    i have attach the workbook.

    sorry for my bad English.

    Thanks in advance
    Attached Files Attached Files
    Last edited by maharaskal; 11-25-2011 at 04:22 AM.

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: How to use "if" formula for change price

    Hello maharaskal
    Welcome to the forum.

    I inserted SHeet1 at the end this will be your table for prices.

    I've done sheets 29,30,31 for you. using IF and Vlookup.
    Hope that Helps
    Attached Files Attached Files
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: How to use "if" formula for change price

    Hello and welcome to the forum,

    Maybe something like this:

    Please Login or Register  to view this content.
    You can replace the "Weekend price" and "Weekday price" with the new values or use a vlookup table.

    Hope this helps.

    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  4. #4
    Registered User
    Join Date
    11-24-2011
    Location
    KL, Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: How to use "if" formula for change price

    Quote Originally Posted by vlady View Post
    Hello maharaskal
    Welcome to the forum.

    I inserted SHeet1 at the end this will be your table for prices.

    I've done sheets 29,30,31 for you. using IF and Vlookup.
    Hope that Helps
    Thanks for the reply. i will check the formula once i back home.
    hope this will solve my problem. Thanks

  5. #5
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: How to use "if" formula for change price

    Just as a heads-up, in Excel the numerical values of days are as follows:

    Please Login or Register  to view this content.
    So Saturday and Sunday are 1 and 7 not 6 and 7. This will affect @vlady's formulas (I believe) since the current formula:

    Please Login or Register  to view this content.
    is checking for Friday and Saturday.

    Hope this helps.

    abousetta

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: How to use "if" formula for change price

    Thank's abousetta.

    @ abousetta

    Please Login or Register  to view this content.
    I think you didn't notice the number 2

    I think this will return Monday as 1 through Sunday as 7.
    If we will use number 3 - then monday is 0 and sunday is 6.

    Thanks..
    Last edited by vlady; 11-24-2011 at 03:19 AM.

  7. #7
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: How to use "if" formula for change price

    Hi @vlady,

    You're right. I didn't notice the return_value. Thanks for pointing this out.

    abousetta

  8. #8
    Registered User
    Join Date
    11-24-2011
    Location
    KL, Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: How to use "if" formula for change price

    Quote Originally Posted by vlady View Post
    Hello maharaskal
    Welcome to the forum.

    I inserted SHeet1 at the end this will be your table for prices.

    I've done sheets 29,30,31 for you. using IF and Vlookup.
    Hope that Helps
    Hi there,

    there is a problem in value10 n value11 the price showing as 0.98 it shud be 1.04. im unable to troubleshoot.

    kindly assist me

  9. #9
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: How to use "if" formula for change price

    Sorry about the delay.

    add a "false" in the formula

    Please Login or Register  to view this content.

  10. #10
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: How to use "if" formula for change price

    You can reduce the formula to,

    =VLOOKUP(A4,Sheet1!$A$5:$C$16,3-(WEEKDAY(E$1,2)>5),0)
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  11. #11
    Registered User
    Join Date
    11-24-2011
    Location
    KL, Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: How to use "if" formula for change price

    Quote Originally Posted by Haseeb A View Post
    You can reduce the formula to,

    =VLOOKUP(A4,Sheet1!$A$5:$C$16,3-(WEEKDAY(E$1,2)>5),0)
    Hi Guys,

    Thanks for all of ur guide. Thanks a lot. U all safe my day..
    its working perfect now

  12. #12
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: How to use "if" formula for change price

    Hi @maharaskal,

    If you are satisfied with the responses then please mark the thread as Solved (instructiions in the forum rules). Also clicking on the scales add rep points to people who have helped you.

    Good luck.

    abousetta

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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