Determining out the Appropriate Price

tbeigi

New Member
Joined
Mar 19, 2014
Messages
40
Hello!

I am looking to create a formula based on the following table:

OPQ
11/9/20142/11/2014May Bid Price
2$0.00$0.00????
3$12.49$12.33????
4$0.00$13.12????
5$12.49$12.73????

<tbody>
</tbody>

*That last row is the average of the column (ignoring zeroes). The first row is the column letters that each column represents in my spreadsheet.

What I want to do is decipher an appropriate bid price based on the data from the past 2 bids (1/9/2014 and 2/11/2014). Currently, I have this formula in the "May Bid Price" row 2 within my spreadsheet (as an example):

=IF(P2>0,P2-0.25,$P$5-0.25)

Which means that if the bid from February 11th is zero, then I will consider the average of that region (row 5) minus $.25 as my bid price; however, if there is a price there (greater than zero), then I will pull that price minus $.25 as my bid price.

The only other thing is, I realized I should be looking at both columns O (1/9/2014) and P (2/11/2014), but I am not sure how to incorporate both of them in my formula. I want to essentially say that if BOTHcolumns are zero, then the formula should pull the price from the average of the column (row 5), BUT if there is a price in either column O or P or both, then I want it to take that most recent price minus $.25 (i.e. If there is a price in 1/9/2014, but not for 2/11/2014, it would take the price from 1/9/2014 minus $.25 and vise versa).

I hope that makes sense. I know it's confusing and was a bit hard to try and explain. Feel free to ask me if you have any questions and thank you for your help! :)
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hello

Code:
[COLOR=#222222]=IF[/COLOR][COLOR=#0000dd](LOOKUP[/COLOR][COLOR=#222222](9^99,O2:P2)[/COLOR][COLOR=#0000dd],LOOKUP[/COLOR][COLOR=#222222](9^99,O2:P2)[/COLOR][COLOR=#0000dd],LOOKUP[/COLOR][COLOR=#222222](9^99,O2:P2,O$5:P$5)[/COLOR][COLOR=#0000dd])[/COLOR][COLOR=#222222]-0.25[/COLOR]
 
Upvote 0
Hello

Code:
[COLOR=#222222]=IF[/COLOR][COLOR=#0000dd](LOOKUP[/COLOR][COLOR=#222222](9^99,O2:P2)[/COLOR][COLOR=#0000dd],LOOKUP[/COLOR][COLOR=#222222](9^99,O2:P2)[/COLOR][COLOR=#0000dd],LOOKUP[/COLOR][COLOR=#222222](9^99,O2:P2,O$5:P$5)[/COLOR][COLOR=#0000dd])[/COLOR][COLOR=#222222]-0.25[/COLOR]

Bless you, kind soul!!!! :biggrin::biggrin::biggrin::biggrin:
 
Upvote 0
Hello,

In one of the tables in my actual spreadsheet, I have ZERO for the Total Avg (row 5) for February 11th (column P), but there is a value (price) for January 9th (column O). This formula then comes up as a negative in this instance instead of pulling the number for Column O and using that number to subtract the $.25. Do you have any advice for fixing that?

Thank you again! :)
 
Upvote 0
Hi

I have ZERO for the Total Avg (row 5) for February 11th (column P)
How can that be if the average is calculated ignoring zeros?
 
Upvote 0
Hi


How can that be if the average is calculated ignoring zeros?

I have one category where there were essentially no bids made during February 11th which comes out to an average of $0.00 whereas in January 9th, there were 2 bids which creates an average of $12.96.

With the formula, it gives me an answer of $0.00 instead of pulling the $12.96 number and subtracting that by $.25 or pulling from the January 9th column to subtract those prices from $.25.
 
Upvote 0
I have one category where there were essentially no bids made during February 11th which comes out to an average of $0.00
My Excel calculates not a zero but a Division by Zero-Error.
P
111.02.2014
2
3
4
5#DIV/0!

<tbody>
</tbody>

ZelleFormel
P5=AVERAGEIF(P2:P4,">0")

<tbody>
</tbody>
Diese Tabelle wurde mit Tab2Html (v2.4.1) erstellt. ©Gerd alias Bamberg

<tbody>
</tbody>
 
Upvote 0
My Excel calculates not a zero but a Division by Zero-Error.
P
111.02.2014
2
3
4
5#DIV/0!

<tbody>
</tbody>

ZelleFormel
P5=AVERAGEIF(P2:P4,">0")

<tbody>
</tbody>
Diese Tabelle wurde mit Tab2Html (v2.4.1) erstellt. ©Gerd alias Bamberg

<tbody>
</tbody>

Hello,

I found the average with the following formula:

=IFERROR(AVERAGEIF(P18:P51,"<>0"),0)

Which gives me a zero if there are no values in the column.
 
Upvote 0
Hi

My formula works if you omit the IFERROR() function.
 
Upvote 0
Hi

My formula works if you omit the IFERROR() function.

Great! So in terms of this formula that you created:

=IF(LOOKUP(9^99,O5:P5),LOOKUP(9^99,O5:P5),LOOKUP(9^99,O5:P5,O$17:P$17))-$U$225

How can I make it so that if there is a zero in the column P (2/11/2014), but there is a value in column O (1/9/2014), that it will use the value in column O instead of just using column P?

Thank you! :)
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,044
Members
449,063
Latest member
ak94

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top