+ Reply to Thread
Results 1 to 9 of 9

HELP - Forecasting spreadsheet issue - day into number?

  1. #1
    Registered User
    Join Date
    06-09-2014
    Posts
    5

    HELP - Forecasting spreadsheet issue - day into number?

    Hi All,

    New to the forum - have used it many times searching for answers before but cant find any answers on my current issue.

    To cut a long story short I have a forecasting spreadsheet which has date in column 1, day in column 2...
    what I need to do is for example: If the day in column 2 is Fri, Sat or Sun x 1.7. If day is Mon, Tue, Wed, Thu x 1.2

    I've searched and searched and cant find an answer but believe if I can turn the day into a number I could use an IF formula....

  2. #2
    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
    44,036

    Re: HELP - Forecasting spreadsheet issue - day into number?

    I don't understand. today is a Monday. It's the 9th June. What answer are you expecting from your query, and why?
    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

  3. #3
    Registered User
    Join Date
    06-09-2014
    Posts
    5

    Re: HELP - Forecasting spreadsheet issue - day into number?

    If the day in column 2 is Fri, Sat or Sun I want to times a cell by 1.7. If day is Mon, Tue, Wed, Thu I want to times the cell by 1.2

    I dont think I can tell excel to work out based on name of a day, however if I can change Sun to 1, Mon to 2 etc I can then put that into an IF formula ie something like this:
    IF(a1=<1&3>,x1.2,x1.7)

  4. #4
    Registered User
    Join Date
    06-09-2014
    Posts
    5

    Re: HELP - Forecasting spreadsheet issue - day into number?

    1-Jun 2-Jun 3-Jun
    Sun Mon Tue
    Rooms Sold 52 135 161
    Sleeper Density 170% 120% 120%
    Sleepers 88 162 193

    This is a cut out of what I have at the moment but I have to populate the Sleeper density manually.... when I know there is a way of formulating it...
    not a major job but when budget is around the corner I'll have to do this for 365 days!!

  5. #5
    Forum Contributor
    Join Date
    03-30-2009
    Location
    dublin
    MS-Off Ver
    Excel 2007
    Posts
    104

    Re: HELP - Forecasting spreadsheet issue - day into number?

    Afternoon Unitedrule (but they don't lol)

    =if(or(text(b1,"DDD")="sun",text(b1,"DDD")="sat",text(b1,"DDD")="fri")),c1*1.7,c1*1.2)

    b1 is the date, c1 is the cell you wish to multiply by 1.2 or 1.7

    baj

  6. #6
    Registered User
    Join Date
    06-09-2014
    Posts
    5

    Re: HELP - Forecasting spreadsheet issue - day into number?

    Quote Originally Posted by bajdr47 View Post
    Afternoon Unitedrule (but they don't lol)

    =if(or(text(b1,"DDD")="sun",text(b1,"DDD")="sat",text(b1,"DDD")="fri")),c1*1.7,c1*1.2)

    b1 is the date, c1 is the cell you wish to multiply by 1.2 or 1.7

    baj

    They used to Baj....

    Awesome!! Thanks for your help, works spot on!

  7. #7
    Registered User
    Join Date
    11-21-2012
    Location
    Cardiff
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: HELP - Forecasting spreadsheet issue - day into number?

    Hi unitedrule,

    Assuming the forecast dates are in column B and the value you want multiplied by 1.2 or 1.7 is in column A then the below formula should work.
    =IF(WEEKDAY(B1,3)<=3,1.2,1.7)*A1

    Weekday returns a number from 0 to 6 dependant on which day of the week it is. With the current return type the week starts with Monday being 0, if the value returned is less or equal to 3 (Monday to Thursday) then 1.2 is multiplied by the value in column A, else it's multiplied by 1.7.

    Hope this helps!
    Dai

  8. #8
    Registered User
    Join Date
    06-09-2014
    Posts
    5

    Re: HELP - Forecasting spreadsheet issue - day into number?

    Awesome... that worked as well!!!

    Ok... how about this one...

    If it says Sat I need the answer to be 100, If Sunday I need it to be 50 and any other day I need it to be 500.....

    I keep getting a 50050 or 10050 answer for my formula!!

  9. #9
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: HELP - Forecasting spreadsheet issue - day into number?

    You could use:
    =LOOKUP(WEEKDAY(B1,2),{1,500;6,100;7,50})
    Remember what the dormouse said
    Feed your head

+ 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. forecasting item number by year
    By jimmymoon in forum Access Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2010, 07:07 PM
  2. Forecasting number/amt of payments
    By GQuinn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-17-2010, 12:48 PM
  3. Forecasting Number and Amount of Payments
    By GQuinn in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-16-2010, 10:22 PM
  4. Created Bidding / Forecasting Spreadsheet. Need help with functions to breakdown data
    By Greg_Excel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-08-2010, 06:27 PM
  5. Work spreadsheet issue
    By jenrenea in forum Excel General
    Replies: 5
    Last Post: 05-25-2005, 01:22 PM

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