Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9170343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:00:21+00:00 2026-06-17T16:00:21+00:00

I’ll try to explain as simple as possible, cause the real thing is a

  • 0

I’ll try to explain as simple as possible, cause the real thing is a bit more big than I’d like. Let’s say that I have a two tables, one where I have the date of every day next to a product, and another table with a specific dates next to a price:

Date     |   Product
--------------------
1/1/2013 |  Apple
--------------------
1/2/2013 |  Orange
--------------------
1/3/2013 |  Pineapple
--------------------
1/4/2013 |  Kiwi


ChangeDate | Price
-------------------
1/3/2013   | 1.99
--------------------
1/6/2013   | 0.95

What I need to do is assign the column of price to the first table, but that it changes according to the ChangeDate column. So, for instance, the first two entries of the first table will have 1.99 as price, but the after the third entry, which coincides with the first changeDate, the price changes to 0.95, and the price will stay as such until another entry coincides with the next changeDate.

My problem is that I don’t know how to dynamically alter this condition. I’m using something along the lines of IF($F$1 < A1, G1, G2) where F1 is the changeDate, A1 is the date of an entry of the first table, G1 is the price next to F1, and G2 is the price that follows. What can I do so that, when F1 is bigger than A#, the next time the condition becomes F2? Do I need to use VBA? (All the information is already on the sheets, no user input is needed or used).

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T16:00:22+00:00Added an answer on June 17, 2026 at 4:00 pm

    Wouldn’t you need an initial price to begin with? I’ll assume so, and that it is the first entry in the price change table, with an entry date of 1/1/2013.

    Then, you would be able to use a straightforward vlookup. If your products are in A2:B5 and your prices are in D1:E3 (including the entry for the initial price), then the formula for the first entry in the product table would be:

        =VLOOKUP(A2,$D$1:$E$3,2)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I'm outputting a post title and in our database, it's Hello Y&#8217;all
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
In my XML file chapters tag has more chapter tag.i need to display chapters
I am doing a simple coin flipping experiment for class that involves flipping a
I am trying to render a haml file in a javascript response like so:
I would like to run a str_replace or preg_replace which looks for certain words

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.